Ken Burns effect CSS only

Developer
Size
3,398 Kb
Views
283,360

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 Previews

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; }
}
Ken Burns effect CSS only - Script Codes
Ken Burns effect CSS only - Script Codes
Home Page Home
Developer Dima
Username dimaZubkov
Uploaded September 17, 2022
Rating 4
Size 3,398 Kb
Views 283,360
Do you need developer help for Ken Burns effect CSS only?

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!

Dima (dimaZubkov) Script Codes
Create amazing marketing copy 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!