Coverflow Animation
How do I make an coverflow animation?
A quick and dirty attempt at a coverflow style animation using only CSS. Not bad, but I wish the beginning could be nicer.. What is a coverflow animation? How do you make a coverflow animation? This script and codes were developed by Mike Fowler on 22 August 2022, Monday.
Coverflow Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Coverflow Animation</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! */ body { padding: 4em 0; text-align: center; background: #f1f1f1;
}
ul { list-style: none; margin: 0; padding: 0; width: 200px; height: 200px; display: inline-block; position: relative;
}
li { position: absolute; top: 0; left: 0; animation: coverflow 4s ease both infinite;
}
li:nth-child(2) { animation-delay: 1s;
}
li:nth-child(3) { animation-delay: 2s;
}
li:nth-child(4) { animation-delay: 3s;
}
img { border-radius: 50%; border: 2px solid white;
}
@keyframes coverflow { 0%, 10% { opacity: 1; transform: none; z-index: 10; } 25%, 35% { opacity: 0.2; transform: translate3d(-170px, 0, 0) scale(0.6); } 50% { opacity: 0; transform: translate3d(-190px, 0, 0) scale(0.6); } 60% { opacity: 0; transform: translate3d(190px, 0, 0) scale(0.6); } 75%, 85% { opacity: 0.2; transform: translate3d(170px, 0, 0) scale(0.6); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <ul> <li><img src="http://placehold.it/200x200"></li> <li><img src="http://placehold.it/200x200"></li> <li><img src="http://placehold.it/200x200"></li> <li><img src="http://placehold.it/200x200"></li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Coverflow Animation - Script Codes CSS Codes
body { padding: 4em 0; text-align: center; background: #f1f1f1;
}
ul { list-style: none; margin: 0; padding: 0; width: 200px; height: 200px; display: inline-block; position: relative;
}
li { position: absolute; top: 0; left: 0; animation: coverflow 4s ease both infinite;
}
li:nth-child(2) { animation-delay: 1s;
}
li:nth-child(3) { animation-delay: 2s;
}
li:nth-child(4) { animation-delay: 3s;
}
img { border-radius: 50%; border: 2px solid white;
}
@keyframes coverflow { 0%, 10% { opacity: 1; transform: none; z-index: 10; } 25%, 35% { opacity: 0.2; transform: translate3d(-170px, 0, 0) scale(0.6); } 50% { opacity: 0; transform: translate3d(-190px, 0, 0) scale(0.6); } 60% { opacity: 0; transform: translate3d(190px, 0, 0) scale(0.6); } 75%, 85% { opacity: 0.2; transform: translate3d(170px, 0, 0) scale(0.6); }
}
Developer | Mike Fowler |
Username | mikefowler |
Uploaded | August 22, 2022 |
Rating | 4.5 |
Size | 2,864 Kb |
Views | 32,384 |
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 |
Image Markers | 3,194 Kb |
Nickname generator | 7,313 Kb |
Mixtape | 3,691 Kb |
Navigation Indicator | 3,472 Kb |
IOS7 Geolocation Map Marker | 4,359 Kb |
Rounded Avatar | 3,263 Kb |
Coverflow | 3,581 Kb |
A Pen by Mike Fowler | 3,067 Kb |
Page Transitions in Backbone | 3,691 Kb |
Map Locator Marker | 4,026 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 |
Svg sky | Omodev | 7,070 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
ECharts Version 3.0 - Bar Marker Chart | WebCodePro | 2,726 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
Canvas Orbital Trails v2 | Jackrugile | 3,421 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 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!