Coverflow Animation

Developer
Size
2,864 Kb
Views
32,384

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 Previews

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); }
}
Coverflow Animation - Script Codes
Coverflow Animation - Script Codes
Home Page Home
Developer Mike Fowler
Username mikefowler
Uploaded August 22, 2022
Rating 4.5
Size 2,864 Kb
Views 32,384
Do you need developer help for Coverflow 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!

Mike Fowler (mikefowler) Script Codes
Create amazing Facebook ads 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!