Animation Sine Movement

Developer
Size
2,425 Kb
Views
2,024

How do I make an animation sine movement?

Playing with CSS3 animations.. What is a animation sine movement? How do you make a animation sine movement? This script and codes were developed by Kevin Alford on 07 January 2023, Saturday.

Animation Sine Movement Previews

Animation Sine Movement - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation Sine Movement</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* This Codepen has prefix-free enabled for the animation tags.
*/
/* Target container */
.box
{ width: 100px; height: 100px; background: red; position: relative; animation-timing-function: ease-in-out; text-align: center; line-height: 100px; border-radius: 5px; border: 1px dashed #bbb; margin: 5px;
}
.sliding_and_bouncing
{ animation: sliding 2s infinite, ribbing 1s infinite;
}
.sliding
{ animation: sliding 3s infinite;
}
.bouncing
{ animation: bouncing 2s infinite;
}
.crazy
{ animation: sliding 4s cubic-bezier(1, 0, 0, 1) infinite;
}
/* This animation causes color and left to right movement */
@keyframes sliding
{ 0% { background: red; left: 0px; } 50% { background: blue; left: 200px; }
}
/* This animation causes up and down jumping */
@keyframes bouncing
{ 0% { top: 0px; } 25% { top: 10px; } 50% { top: 0px; } 75% { top: 40px; }
}
body
{ background-color: #555753; color: #eee;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <!DOCTYPE html>
<html> <head> </head>
<body> <div class="box bouncing"> bounce </div> <div class="box sliding"> slide </div> <div class="box sliding_and_bouncing"> weee! </div> <div class="box crazy"> ♫ </div>
</body>
</html>
</body>
</html>

Animation Sine Movement - Script Codes CSS Codes

/* This Codepen has prefix-free enabled for the animation tags.
*/
/* Target container */
.box
{ width: 100px; height: 100px; background: red; position: relative; animation-timing-function: ease-in-out; text-align: center; line-height: 100px; border-radius: 5px; border: 1px dashed #bbb; margin: 5px;
}
.sliding_and_bouncing
{ animation: sliding 2s infinite, ribbing 1s infinite;
}
.sliding
{ animation: sliding 3s infinite;
}
.bouncing
{ animation: bouncing 2s infinite;
}
.crazy
{ animation: sliding 4s cubic-bezier(1, 0, 0, 1) infinite;
}
/* This animation causes color and left to right movement */
@keyframes sliding
{ 0% { background: red; left: 0px; } 50% { background: blue; left: 200px; }
}
/* This animation causes up and down jumping */
@keyframes bouncing
{ 0% { top: 0px; } 25% { top: 10px; } 50% { top: 0px; } 75% { top: 40px; }
}
body
{ background-color: #555753; color: #eee;
}
Animation Sine Movement - Script Codes
Animation Sine Movement - Script Codes
Home Page Home
Developer Kevin Alford
Username zeroeth
Uploaded January 07, 2023
Rating 3
Size 2,425 Kb
Views 2,024
Do you need developer help for Animation Sine Movement?

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!

Kevin Alford (zeroeth) Script Codes
Create amazing art & images 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!