Ken Burns effect CSS only
How do I make an ken burns effect css only?
Ken Burns effect CSS only. What is a ken burns effect css only? How do you make a ken burns effect css only? This script and codes were developed by Dima on 17 September 2022, Saturday.
Ken Burns effect CSS only - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Ken Burns effect CSS only</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100,700,900&subset=latin,cyrillic'> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="CrossFade"><img src="//unsplash.it/1600/900?image=1043" alt="img"/><img src="//unsplash.it/1600/900?image=1039" alt="img"/><img src="//unsplash.it/1600/900?image=1017" alt="img"/><img src="//unsplash.it/1600/900?image=929" alt="img"/> <div class="intro"> <h1>Lorem ipsum dolor sit amet</h1> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis impedit facilis nesciunt quam vitae voluptatibus ullam vero.</p> </div>
</div>
</body>
</html>
Ken Burns effect CSS only - Script Codes CSS Codes
* { margin: 0; padding: 0; box-sizing: border-box;
}
:root { font-size: calc(0.5vw + 1vh + 0.5vmin);
}
body { font: 100 50%/1.5 'Roboto', sans-serif;
}
.intro { position: relative; margin: 2em; padding: 0.2em 0.6em; cursor: pointer; color: #fff; font-size: 2em; max-width: 26em;
}
.intro h1 { margin-bottom: 0.5em; line-height: 1; font-weight: 100;
}
#CrossFade { background: #fff; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; height: 100vh; overflow: hidden; position: relative;
}
#CrossFade img { position: absolute; min-width: 100%; min-height: 100%; height: auto; background: #000; -webkit-backface-visibility: hidden; backface-visibility: hidden; opacity: 0; -webkit-transform: scale(1.4) rotate(12deg); transform: scale(1.4) rotate(12deg); -webkit-animation: CrossFade 24s infinite; animation: CrossFade 24s infinite;
}
#CrossFade img:nth-child(3) { -webkit-animation-delay: 6s; animation-delay: 6s;
}
#CrossFade img:nth-child(2) { -webkit-animation-delay: 12s; animation-delay: 12s;
}
#CrossFade img:nth-child(1) { -webkit-animation-delay: 18s; animation-delay: 18s;
}
/*
$duration = 12
$slides = 4
$step = $duration/$slides
setDelayRevers($duration, $slides) for index in (2..$slides) &:nth-child({index -1}) animation-delay ($step*index)s
#CrossFade height 100vh overflow hidden position relative display flex img align-self center position absolute min-width 100% min-height 100% height auto backface-visibility hidden opacity 0 transform scale(1.4) rotate(12deg) animation CrossFade ($duration)s infinite setDelayRevers($duration, $slides)
@keyframes CrossFade 25% opacity 1 transform scale(1) rotate(0) 40% opacity 0
*/
@-webkit-keyframes CrossFade { 25% { opacity: 1; -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } 40% { opacity: 0; }
}
@keyframes CrossFade { 25% { opacity: 1; -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } 40% { opacity: 0; }
}
Developer | Dima |
Username | dimaZubkov |
Uploaded | September 17, 2022 |
Rating | 4 |
Size | 3,398 Kb |
Views | 283,360 |
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 |
Section scroll | 5,271 Kb |
Angular T-shirt shop | 8,889 Kb |
Glitch | 3,368 Kb |
Scroll animating effect | 4,146 Kb |
Vue cart | 4,497 Kb |
Star Rating | 2,819 Kb |
Codrops HoverEffectIdeas | 14,526 Kb |
Responsive typography harmony | 4,090 Kb |
Section Slides | 5,312 Kb |
Fluid typography | 3,929 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 |
BabyStore | Pablo-Ai | 3,807 Kb |
Popover | Teles | 2,248 Kb |
Prototype Responsive Homepage | Heyitsolivia | 7,677 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Scroll effect with text with help from Skrollr | Luxonglassing | 2,935 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
Button Option Group | Honchoman | 1,859 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!