Animation Demo
How do I make an animation demo?
This is used to embed in my blog http://agelber.com/blog/transition-and-animation. What is a animation demo? How do you make a animation demo? This script and codes were developed by Assaf Gelber on 03 January 2023, Tuesday.
Animation Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation Demo</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <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! */ @import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300';
body { overflow: hidden; font-family: Source Sans Pro; perspective: 400px; transform: translateZ(0);
}
.element { box-sizing: border-box; position: absolute; left: 0px; width: 50px; height: 50px; background: #387FF2; border: 3px solid #444; animation: move 1s alternate infinite;
}
.element:first-child { margin: 45px auto; animation-timing-function: ease-in;
}
.element:nth-child(2) { margin: 110px auto; animation-timing-function: ease-out;
}
.explanation { font-weight: bold;
}
@keyframes move { from { transform: none; } to { transform: translateX(400px); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='element'></div>
<div class='element'></div>
<div class='explanation'> The two sqaures will run from side to side with different timing functions.
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Animation Demo - Script Codes CSS Codes
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300';
body { overflow: hidden; font-family: Source Sans Pro; perspective: 400px; transform: translateZ(0);
}
.element { box-sizing: border-box; position: absolute; left: 0px; width: 50px; height: 50px; background: #387FF2; border: 3px solid #444; animation: move 1s alternate infinite;
}
.element:first-child { margin: 45px auto; animation-timing-function: ease-in;
}
.element:nth-child(2) { margin: 110px auto; animation-timing-function: ease-out;
}
.explanation { font-weight: bold;
}
@keyframes move { from { transform: none; } to { transform: translateX(400px); }
}
Developer | Assaf Gelber |
Username | agelber |
Uploaded | January 03, 2023 |
Rating | 3 |
Size | 3,031 Kb |
Views | 8,096 |
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!
Name | Size |
ScaleZ Demo | 3,184 Kb |
Posting Animation | 4,524 Kb |
Simple Night Sky | 3,266 Kb |
Text Looping Transition | 5,619 Kb |
Form Placeholder Labels | 3,824 Kb |
Blurring Menu | 2,934 Kb |
TranslateZ Demo | 3,176 Kb |
CSS Animated Bio Card | 4,004 Kb |
RotateX and Y Demo | 3,329 Kb |
Transition Demo | 2,780 Kb |
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!
Name | Username | Size |
Email Marketing Mock | Kristenzirkler | 8,224 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Slim Grid SASS SCSS v3.2 | Thesturs | 4,709 Kb |
Spilled Paint | Darrylhuffman | 3,894 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
Count up | Alanshortis | 2,391 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Twitch JSON API | Jvhti | 2,808 Kb |
Sort the Knowlege | Eprouver | 3,915 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!