Transition Demo
How do I make an transition demo?
This is used to embed in my blog http://agelber.com/blog/transition-and-animation. What is a transition demo? How do you make a transition demo? This script and codes were developed by Assaf Gelber on 03 January 2023, Tuesday.
Transition Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Transition 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; transform: translateZ(0);
}
#element { box-sizing: border-box; position: absolute; left: 250px; width: 100px; height: 100px; background: #387FF2; border: 3px solid #444; margin: 50px auto; transition: all 0.5s linear;
}
#element:hover { transform: rotate(180deg); background-color: #FFF;
}
.explanation { font-weight: bold; width: 200px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id='element'></div>
<div class='explanation'> Hover over the square to see the transition.
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Transition Demo - Script Codes CSS Codes
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:300';
body { overflow: hidden; font-family: Source Sans Pro; transform: translateZ(0);
}
#element { box-sizing: border-box; position: absolute; left: 250px; width: 100px; height: 100px; background: #387FF2; border: 3px solid #444; margin: 50px auto; transition: all 0.5s linear;
}
#element:hover { transform: rotate(180deg); background-color: #FFF;
}
.explanation { font-weight: bold; width: 200px;
}
Developer | Assaf Gelber |
Username | agelber |
Uploaded | January 03, 2023 |
Rating | 3 |
Size | 2,780 Kb |
Views | 6,072 |
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 |
Translate Demo | 3,188 Kb |
Origin Demo | 3,523 Kb |
Social Link Handle Animation | 3,241 Kb |
Pure CSS Image Gallery | 3,911 Kb |
Scale Demo | 3,214 Kb |
CSS Only Single-Element 3D Cuboid | 2,913 Kb |
RotateX and Y Demo | 3,329 Kb |
TranslateZ Demo | 3,176 Kb |
Perspective Origin Demo | 3,614 Kb |
Rotate Demo | 3,061 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 |
CSS3 Diamond | Rendro | 1,960 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Flat design iframe | Damienpm | 1,819 Kb |
Parallax.js | Zmeeey5 | 2,330 Kb |
Blog Concept - Single Post | Marionebl | 9,603 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!