CSS3 Animation

Developer
Size
2,556 Kb
Views
20,240

How do I make an css3 animation?

Working on some ideas for a new spinning logo.. What is a css3 animation? How do you make a css3 animation? This script and codes were developed by Kyle on 16 October 2022, Sunday.

CSS3 Animation Previews

CSS3 Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="experiment"> <div id="cube"> <div class="face one"></div> <div class="face two"></div> <div class="face three"></div> <div class="face four"></div> <div class="face five"></div> <div class="face six"></div> <div class="circle"></div> <div class="circle circ"></div> <div class="circle circl"></div> </div>
</div>
</body>
</html>

CSS3 Animation - Script Codes CSS Codes

* { box-sizing: border-box;
}
@-webkit-keyframes spin { from { -webkit-transform: rotateY(0deg) rotateX(40deg); } to { -webkit-transform: rotateY(360deg) rotateX(40deg); }
}
@-webkit-keyframes circle { 0% { left: 0; top: 0; } 50% { left: 160px; top: 160px; } 100% { left: 0; top: 0; }
}
#experiment { -webkit-perspective: 1000; -webkit-perspective-origin: 60% 300px;
}
#cube { position: relative; width: 200px; height: 200px; text-align: center; margin: 100px auto; -webkit-transition: -webkit-transform 2s linear; -webkit-transform-style: preserve-3d; -webkit-animation: spin 5s linear infinite;
}
#cube .face { position: absolute; height: 100%; width: 100%; padding: 30px; background-color: rgba(30, 150, 45, 0.6); border: 1px solid rgba(30, 100, 60, 0.6);
}
#cube .one { -webkit-transform: rotateX(90deg) translateZ(100px);
}
#cube .two { -webkit-transform: translateZ(100px);
}
#cube .three { -webkit-transform: rotateY(90deg) translateZ(100px);
}
#cube .four { -webkit-transform: rotateY(180deg) translateZ(100px);
}
#cube .five { -webkit-transform: rotateY(-90deg) translateZ(100px);
}
#cube .six { -webkit-transform: rotateX(-90deg) translateZ(100px);
}
#cube .circle { border-radius: 20px; height: 40px; width: 40px; background-color: red; position: absolute; top: -80px; left: -80px; -webkit-animation: circle 5s linear infinite;
}
#cube .circ { -webkit-transform: rotateX(90deg);
}
#cube .circl { -webkit-transform: rotateY(90deg);
}
CSS3 Animation - Script Codes
CSS3 Animation - Script Codes
Home Page Home
Developer Kyle
Username kbrec85
Uploaded October 16, 2022
Rating 3
Size 2,556 Kb
Views 20,240
Do you need developer help for CSS3 Animation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kyle (kbrec85) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!