I'm working in React js and am trying to emulate the vertical move up animation you see on the text "A DIGITAL DESIGN STUDIO
DRIVEN BY RESEARCH &
STRATEGY" here - https://dashdigital.studio/
From inspecting this site I have tried working with their translation CSS -
transition-delay: .9s;
transition: transform 1.3s cubic-bezier(.075, .82, .165, 1);
transform: translateY(0%);
However there is the "moving up from behind a wall" effect in use that I can't find a starting point for. Ideally I'd have this occur to elements on scroll - is there a package or starting point for anything like this?
How can I create this vertical wipe from behind a wall effect?
You can create vertically animation by following this code
html, body {
height: 100%;
}
body {
font-family: "Baloo Paaji", cursive;
background: #1e90ff;
display: flex;
justify-content: center;
align-items: center;
}
.container {
width: 400px;
height: 220px;
position: relative;
}
h1, h2 {
font-size: 75px;
text-transform: uppercase;
}
h1 span, h2 span {
width: 100%;
float: left;
color: #ffffff;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
transform: translateY(-150px);
opacity: 0;
-webkit-animation-name: titleAnimation;
animation-name: titleAnimation;
-webkit-animation-timing-function: ease;
animation-timing-function: ease;
-webkit-animation-duration: 3s;
animation-duration: 3s;
}
h1 span {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
-webkit-animation-fill-mode: forwards;
}
h1 span:first-child {
-webkit-animation-delay: 0.7s;
animation-delay: 0.7s;
}
h1 span:last-child {
color: #ffe221;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
h2 {
top: 0;
position: absolute;
}
h2 span {
-webkit-animation-delay: 4.1s;
animation-delay: 4.1s;
-webkit-animation-fill-mode: forwards;
}
h2 span:first-child {
-webkit-animation-delay: 4.2s;
animation-delay: 4.2s;
}
h2 span:last-child {
color: #ffe221;
-webkit-animation-delay: 4s;
animation-delay: 4s;
}
.usechrome {
font-size: 10px;
color: #fff;
font-family: helvetica, arial;
position: absolute;
bottom: 20px;
width: 100%;
text-align: center;
left: 0;
}
#-webkit-keyframes titleAnimation {
0% {
transform: translateY(-50px);
opacity: 0;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
}
20% {
transform: translateY(0);
opacity: 1;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
}
80% {
transform: translateY(0);
opacity: 1;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
}
100% {
transform: translateY(50px);
opacity: 0;
-webkit-clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
}
}
#keyframes titleAnimation {
0% {
transform: translateY(-50px);
opacity: 0;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
}
20% {
transform: translateY(0);
opacity: 1;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
}
80% {
transform: translateY(0);
opacity: 1;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
}
100% {
transform: translateY(50px);
opacity: 0;
-webkit-clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
clip-path: polygon(100% 0, 100% 0%, 0 100%, 0 100%);
}
}/*# sourceMappingURL=style.css.map */
<section class="container">
<h1 class="title">
<span>Hi, nice</span>
<span>to see</span>
<span>you here</span>
</h1>
<h2 class="title">
<span>This is</span>
<span>a long</span>
<span>sub title</span>
</h2>
</section>
<span class="usechrome">Use Chrome for a better experience</span>
I'm trying to make a sort of "cover" for a text post. However, the checkbox I coded with display: none is not working. I am not sure if it's because of the hierarchy, or because I added a hover to make it spin. I've tried moving it around and taking out the hover but it doesn't work. While I know this would be easier made with js, the platform I'm going to use this at doesn't support Js.
Here is the part of the html code, I'm working on. I want everythin inside "doubleport" to disapear, with a fade out transition.
<div class="doubletrouble">
<div class= "doubleport" id="porting"> <div class= "menu"><label id=portbtnx> <input type="checkbox"> Double<br>Trouble</label>
<div id= portdata> Dato desu </div>
<div id= portdata> Dato largo </div>
</div>
<div class= "doubledisp">
<div id= "portleft"></div><div id="portright"></div>
</div></div>
then the css for the checkbox formating
.menu #portbtnx{
width: 125px;
height: 125px;
background: radial-gradient(
rgba(252,255,200,1) 5%,
rgba(229,180,59,1) 35%,
rgba(91,16,134,1) 90%);
margin: 5px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
color: (--spacepurp);
font-family: 'Lobster', cursive;
font-size: 20px;}
.doubletrouble #portbtnx:hover {
animation: spin 6s;}
#-moz-keyframes spin {
100% { -moz-transform: rotate(360deg); }
}
#-webkit-keyframes spin {
100% { -webkit-transform: rotate(360deg); }
}
#keyframes spin {
100% {
-webkit-transform: rotate(360deg);
transform:rotate(360deg);
}
}
Lastly the code I have for the checkbox and transition:
.doubletrouble input[type=checkbox]{display:none}
input[type=checkbox label="portbtnx"]:checked~ .doubleport .menu .doubledisp {
display: none;
animation: disapear 4s;
}
#keyframes disapear{ from {opacity:1} to {opacity:0;}}
If anyone can help it'd be extremely appreciated. Cheers!
Here is the full code so far, please note that the css is not finished. Since it's quite long I decided to keep the snips as well.
.doubletrouble{
height: 815px;
width: 640px;
background-color: var(--spacepurp, #3f1d59);
padding: 10px;
}
.doubletrouble .doubleport{
height: 795px;
width: 620px;
background: linear-gradient(0deg, rgba(175,135,34,1) 0%, rgba(91,16,134,1) 50%, rgba(175,135,34,1) 100%);;
padding: 10px;}
.doubleport .doubledisp{
display: flex;
possition: relative;
z-index: 1;
}
.doubleport #portleft{
height: 795px;
width: 325px;
background-image: url(https://i.imgur.com/nJr1QCa.png);
clip-path: polygon(0 0, 100% 0%, 90% 100%, 0 100%);
margin-right: -10px;
}
.doubleport #portright{
height: 795px;
width: 325px;
clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
background-image: url(https://i.imgur.com/SuO1nGg.png);
margin-left: -10px;
}
.doubleport .menu{
position: absolute;
display: inline;
padding: 270px;
width: 150px;
margin-top: 100px;
margin-left: -30px;
z-index: 2;
}
.menu #portbtnx{
width: 125px;
height: 125px;
background: radial-gradient(
rgba(252,255,200,1) 5%,
rgba(229,180,59,1) 35%,
rgba(91,16,134,1) 90%);
margin: 5px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
color: (--spacepurp);
font-family: 'Lobster', cursive;
font-size: 20px;}
.doubletrouble #portbtnx:hover {
animation: spin 6s;}
#-moz-keyframes spin {
100% { -moz-transform: rotate(360deg); }
}
#-webkit-keyframes spin {
100% { -webkit-transform: rotate(360deg); }
}
#keyframes spin {
100% {
-webkit-transform: rotate(360deg);
transform:rotate(360deg);
}
}
.doubleport #portdata{
margin: 5px;
margin-left: -5px;
margin-top: 10px;
text-align: center;
background: linear-gradient(90deg, rgba(91,16,134,1) 0%, rgba(229,180,59,1) 50%, rgba(252,255,200,1) 100%);
color: (--spacepurp);
font-family: 'Lobster', cursive;
opacity: .8;
}
#portdata:hover{background: linear-gradient(90deg,
rgba(252,255,200,1) 0%,
rgba(229,180,59,1) 50%, rgba(91,16,134,1) 100%);
opacity: 1;
transition: opacity .35s ease-in-out;
-moz-transition: opacity .35s ease-in-out;
-webkit-transition: opacity .35s ease-in-out; }
.doubletrouble input[type=checkbox]{display:none}
input[type=checkbox label="portbtnx"]:checked~ .doubleport .menu .doubledisp {
display: none;
animation: disapear 4s;
}
#keyframes disapear{ from {opacity:1} to {opacity:0;}}
<head> <link rel="stylesheet" href="https://files.jcink.net/uploads2/nikudoesthings/nikullection_icons/nikuicons.css"/> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet"> </head>
<body>
<div class="doubletrouble">
<div class= "doubleport" id="porting"> <div class= "menu"><label id=portbtnx> <input type="checkbox"> Double<br>Trouble</label>
<div id= portdata> Dato desu </div>
<div id= portdata> Dato largo </div>
</div>
<div class= "doubledisp">
<div id= "portleft"></div><div id="portright"></div>
</div></div>
<div class= "dobletitle">
<div class= "mojinaka">
<div class="mojihako">
<div class= "mojisoto">
</div>
</div>
</div>
</div>
</div> </body>
Try
.doubletrouble:checked #dataport{
Display:none
}
Or
Visibility:0%;
It depends on the use case
I have a 3D triangle with a base color for every shape, but I want the base (aka the square) to have an animated color, but after adding the animation, the triangles all lay flat all of the sudden. When I remove the animation, the shapes readjust as they should.
For the animation I hue-rotate the linear-gradient color of the square in #keframes animate.
Here is the html code:
<div class="wrapper">
<div class="pyramid">
<div class="square">
<div class="triangle"></div>
<div class="triangle"></div>
<div class="triangle"></div>
<div class="triangle"></div>
</div>
</div>
</div>
And CSS:
#-webkit-keyframes animate {
0%, 100% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(360deg);
}
}
#keyframes animate {
0%, 100% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(360deg);
}
}
#-webkit-keyframes rotate {
from {
transform: rotateX(120deg) rotateZ(0deg);
}
50% {
transform: rotateX(120deg) rotateZ(180deg);
}
to {
transform: rotateX(120deg) rotateZ(360deg);
}
}
#keyframes rotate {
from {
transform: rotateX(120deg) rotateZ(0deg);
}
50% {
transform: rotateX(120deg) rotateZ(180deg);
}
to {
transform: rotateX(120deg) rotateZ(360deg);
}
}
.wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
top: 500px;
left: 50%;
margin-bottom: 0;
transform-style: preserve-3d;
width: 3.75rem;
height: 3.75rem;
transform-origin: 1.875rem 1.875rem;
transform: rotateX(120deg) rotateZ(45deg);
-webkit-animation: rotate 4s linear infinite;
animation: rotate 4s linear infinite;
}
.pyramid {
position: absolute;
perspective: 500px;
transform-style: preserve-3d;
}
.square {
width: 3.75rem;
height: 3.75rem;
transform-style: preserve-3d;
background: linear-gradient(to left, #008aff, #00ffe7);
-webkit-animation: animate 5s linear infinite;
animation: animate 5s linear infinite;
}
.triangle {
position: absolute;
width: 5rem;
height: 5rem;
}
.triangle:nth-child(1) {
width: 3.75rem;
top: -33%;
background: #f1ecfb;
-webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
transform-origin: 50% 100%;
transform: rotateX(-68deg);
}
.triangle:nth-child(2) {
width: 3.75rem;
background: #f1ecfb;
-webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
clip-path: polygon(50% 100%, 0 0, 100% 0);
transform-origin: 50% 0%;
transform: rotateX(68deg);
}
.triangle:nth-child(3) {
height: 3.75rem;
left: -33%;
background: white;
transform-origin: 100% 50%;
-webkit-clip-path: polygon(100% 100%, 0 50%, 100% 0);
clip-path: polygon(100% 100%, 0 50%, 100% 0);
transform: rotateY(68deg);
}
.triangle:nth-child(4) {
height: 3.75rem;
background: white;
transform-origin: 0% 50%;
-webkit-clip-path: polygon(0 100%, 100% 50%, 0 0);
clip-path: polygon(0 100%, 100% 50%, 0 0);
transform: rotateY(-68deg);
}
I changed it so that the animation changes the background color which resolves the issue.
#-webkit-keyframes animate {
0%, 100%{
background: #ffadad;
}
12.5%{
background: #ffd6a5;
}
25%{
background: #fdffb6;
}
37.5%{
background: #caffbf;
}
50%{
background: #9bf6ff;
}
62.5%{
background: #a0c4ff;
}
75%{
background: #bdb2ff;
}
87.5%{
background: #ffc6ff;
}
}
#keyframes animate {
0%, 100%{
background: #ffadad;
}
12.5%{
background: #ffd6a5;
}
25%{
background: #fdffb6;
}
37.5%{
background: #caffbf;
}
50%{
background: #9bf6ff;
}
62.5%{
background: #a0c4ff;
}
75%{
background: #bdb2ff;
}
87.5%{
background: #ffc6ff;
}
}
I have tried some codes to make my logo shining using CSS3. Unfortunately the result was not so nice. Have a look my snippet what I've done.
p/s: The border of the flash makes my splash screen not so nice.
My expected output:
Shining move along the logo.
/*Splash screen*/
body
{
background-color:#ccc;
}
.middle-screen
{
height: 100px;
/* margin-top: 31vh;*/
width: 74%;
margin-left: auto;
margin-right: auto;
}
i.splash {
position: absolute;
opacity: 0;
top: 0;
left: 0;
background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* ff3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255,255,255,1)), color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(255,255,255,0)), color-stop(100%, rgba(255,255,255,0))); /* safari4+,chrome */
background:-webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* safari5.1+,chrome10+ */
background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* opera 11.10+ */
background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* ie10+ */
background:radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#FFFFFF',GradientType=0 ); /* ie6-9 */
width: 20%;
height: 72px;
transform: skew(-10deg, 0deg);
-webkit-transform: skew(-10deg, 0deg);
-moz-transform: skew(-10deg, 0deg);
-ms-transform: skew(-10deg, 0deg);
-o-transform: skew(-10deg, 0deg);
animation: move 5s;
/*animation-iteration-count: infinite;*/
animation-delay: 300ms;
-webkit-animation: move 5s;
/*-webkit-animation-iteration-count: infinite;*/
-webkit-animation-delay: 300ms;
-moz-transform: skew(-10deg, 0deg);
-moz-animation: move 5s;
/*-moz-animation-iteration-count: infinite;*/
-moz-animation-delay: 1s;
-ms-transform: skew(-10deg, 0deg);
-ms-animation: move 5s;
/*-ms-animation-iteration-count: infinite;*/
-ms-animation-delay: 1s;
-o-transform: skew(-10deg, 0deg);
-o-animation: move 5s;
/*-o-animation-iteration-count: infinite;*/
-o-animation-delay: 1s;
margin-top: 39vh;
}
/* */
#keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.8;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-webkit-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.2;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-moz-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 88%;
}
}
#-ms-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-o-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
<div class="bg-splash">
<div class="middle-screen">
<img width="100%" src="http://jiayuhk.com/sc/assets/img/sample/shortcode/logo/1.png" />
<i class="splash"></i>
</div>
</div>
I removed the margin-top: 31vh;from .middle-screen. Perhaps this is what you wanted:
/*Splash screen*/
body
{
background-color:#ccc;
}
.middle-screen
{
height: 100px;
width: 74%;
margin-left: auto;
margin-right: auto;
}
i.splash {
position: absolute;
opacity: 0;
top: 0;
left: 0;
background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* ff3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255,255,255,1)), color-stop(0%, rgba(255,255,255,1)), color-stop(100%, rgba(255,255,255,0)), color-stop(100%, rgba(255,255,255,0))); /* safari4+,chrome */
background:-webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* safari5.1+,chrome10+ */
background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* opera 11.10+ */
background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* ie10+ */
background:radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%, rgba(255,255,255,0) 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#FFFFFF',GradientType=0 ); /* ie6-9 */
width: 20%;
height: 72px;
transform: skew(-10deg, 0deg);
-webkit-transform: skew(-10deg, 0deg);
-moz-transform: skew(-10deg, 0deg);
-ms-transform: skew(-10deg, 0deg);
-o-transform: skew(-10deg, 0deg);
animation: move 5s;
/*animation-iteration-count: infinite;*/
animation-delay: 300ms;
-webkit-animation: move 5s;
/*-webkit-animation-iteration-count: infinite;*/
-webkit-animation-delay: 300ms;
-moz-transform: skew(-10deg, 0deg);
-moz-animation: move 5s;
/*-moz-animation-iteration-count: infinite;*/
-moz-animation-delay: 1s;
-ms-transform: skew(-10deg, 0deg);
-ms-animation: move 5s;
/*-ms-animation-iteration-count: infinite;*/
-ms-animation-delay: 1s;
-o-transform: skew(-10deg, 0deg);
-o-animation: move 5s;
/*-o-animation-iteration-count: infinite;*/
-o-animation-delay: 1s;
margin-top: 39vh;
}
/* */
#keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.8;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-webkit-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.2;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-moz-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 88%;
}
}
#-ms-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
#-o-keyframes move {
0% {
left: 0;
opacity: 0;
}
5% {
opacity: 0.0;
}
48% {
opacity: 0.4;
}
80% {
opacity: 0.0;
}
100% {
left: 82%;
}
}
<div class="bg-splash">
<div class="middle-screen">
<img width="100%" src="http://jiayuhk.com/sc/assets/img/sample/shortcode/logo/1.png" />
<i class="splash"></i>
</div>
</div>
Just remove the margin-top from your .middle_screen and you should be good to go.
I have a html program with a css and js file, and i have a continuously looping spin animation on one of my elements, when i hover over it it changes its animation to a different animation, but when i hover it, it instantly moves back to 0deg causing a uncomfortable jump, is there a way for the animation to know where it is currently to start at that position?
here's my code, its all of it so its a bit long
body{
background: #808080;
}
.Glow{
transform: rotate(90deg);
background:blue;
position: absolute;
border-radius: 50%;
overflow: hidden;
}
.Glow:nth-child(1){
width: 300px;
height: 300px;
background: #ffffff;
-webkit-clip-path: polygon(00% 100%, 50% 50%, 100% 100%);
}
.Glow:nth-child(2){
width: 300px;
height: 300px;
background: #ffffff;
-webkit-clip-path: polygon(0% 0%, 50% 50%, 100% 0%);
}
.Glow:nth-child(3){
width: 270px;
height: 270px;
margin: 15px;
background: #808080;
}
.Glow:nth-child(4){
width: 300px;
height: 300px;
-webkit-clip-path: polygon(30% 100%, 45% 85%, 50% 50%, 55% 85%, 70% 100%);
background: #ffffff;
}
.Glow:nth-child(5){
width: 300px;
height: 300px;
-webkit-clip-path: polygon(30% 0%, 45% 15%, 50% 50%, 55% 15%, 70% 0%);
background: #ffffff;
}
.Glow:nth-child(6){
left: 45%;
top: 19%;
border-radius: 0%;
width: 3px;
height: 100px;
background: linear-gradient(#808080, #cccccc);
animation: null;
transform: rotate(0deg);
}
.Glow:nth-child(7){
left: 46.6%;
top: 19%;
border-radius: 0%;
width: 3px;
height: 100px;
background: linear-gradient(#808080, #cccccc);
animation: null;
transform: rotate(0deg);
}
.Glow:nth-child(8){
width: 150px;
height: 150px;
margin: 75px;
-webkit-clip-path: polygon(0% 0%, 0% 30%, 8% 39%, 8% 61%, 0% 70%, 0% 100%, 100% 100%, 100% 70%, 92% 61%, 92% 39%, 100% 30%, 100% 0%);
background: #ffffff;
}
.Glow:nth-child(9){
width: 150px;
height: 150px;
margin: 75px;
-webkit-clip-path: polygon(6% 41%, 6% 60%, 0% 66%, 0% 34%);
background: #ffffff;
}
.Glow:nth-child(10){
width: 150px;
height: 150px;
margin: 75px;
-webkit-clip-path: polygon(94% 41%, 94% 60%, 100% 66%, 100% 34%);
background: #ffffff;
}
.Glower:hover{
left: 37%;
top: 20%;
animation: spin1 2s linear 0s infinite;
}
.Glower{
transform: rotate(0deg);
position: absolute;
left: 37%;
top: 20%;
width: 300px;
height: 300px;
animation: spin 4s linear 0s infinite forwards;
}
#-webkit-keyframes spin{
100%{
-webkit-transform: rotate(450deg);
}
}
#-webkit-keyframes spinside{
100%{
-webkit-transform: rotate(270deg);
}
}
#-webkit-keyframes openCircle1{
100%{
top: 40%;
}
}
#-webkit-keyframes openCircle2{
100%{
top: 10%;
}
}
#-webkit-keyframes spin1{
0%{
-webkit-transform: scale(1) rotate(0deg);
}
25%{
-webkit-transform: scale(.9) rotate(120deg);
}
75%{
-webkit-transform: scale(1.1) rotate(240deg);
}
100%{
-webkit-transform: scale(1) rotate(360deg);
}
}
Edit: i use the spin1 and the spin animation btw
Edit 2: here's the codepen upload https://codepen.io/Inertiality/pen/mEBkvN
Edit 3: am i able to use transitions? cause i dont see how those could work with the animations