Carousel with animation
How do I make an carousel with animation?
Bootstrap carousel with animations. What is a carousel with animation? How do you make a carousel with animation? This script and codes were developed by Georgi Demirev on 11 November 2022, Friday.
Carousel with animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Carousel with animation</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="header-carousel" class="carousel slide" data-ride="header-carousel-ride"> <div class="carousel-inner"> <div class="item" style="background-image: url('https://www.invisioncommunity.co.uk/wp-content/uploads/2014/01/Need-for-Speed-Rivals-Screenshot-05.jpg');"> <div class="title">Need for Speed</div> <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tincidunt purus eget justo dignissim euismod. Donec non quam commodo, consequat orci nec...</div> <div class="more">Read More</div> </div> <div class="item" style="background-image: url('http://www.tmcheats.com/wordpress/wp-content/uploads/2013/09/battlefield_4_china_rising-wide.jpg');"> <div class="title">Battle Field</div> <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tincidunt purus eget justo dignissim euismod. Donec non quam commodo, consequat orci nec...</div> <div class="more">Read More</div> </div> <div class="item" style="background-image: url('http://img1.wikia.nocookie.net/__cb20130918230846/diablo/es/images/f/f9/Diablo-3-wallpaper.jpg');"> <div class="title">Diablo</div> <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tincidunt purus eget justo dignissim euismod. Donec non quam commodo, consequat orci nec...</div> <div class="more">Read More</div> </div> <div class="item" style="background-image: url('https://2ch.hk/mc/src/174372/1406368696794.jpg');"> <div class="title">Minecraft</div> <div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tincidunt purus eget justo dignissim euismod. Donec non quam commodo, consequat orci nec...</div> <div class="more">Read More</div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#header-carousel" role="button" data-slide="prev"> <i class="fa fa-chevron-left fa-3x"></i> </a> <a class="right carousel-control" href="#header-carousel" role="button" data-slide="next"> <i class="fa fa-chevron-right fa-3x"></i> </a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Carousel with animation - Script Codes CSS Codes
body { font-family: "Arial"; color: #fff; }
#header-carousel .carousel-inner .item { background-size: cover; background-position: center; width: 100%; height: 400px; }
.carousel-control i { margin-top: 170px; }
.slide { background: #dadada; width: 100%; height: 400px; }
.title { font-size: 50px; font-weight: bold; text-align: center; opacity: 0; text-shadow: 0px 3px 1px rgba(0,0,0,0.7); position: absolute; width: 100%; top: 0;
}
.text { max-width: 540px; margin: 0 auto; padding-top: 175px; opacity: 0; text-shadow: 0px 1px 1px rgba(0,0,0,1.0); }
.more { background: #e2393e; font-weight: bold; width: 200px; text-align: center; line-height: 4; -webkit-box-shadow: 0px 3px 0px 0px #932427; -moz-box-shadow: 0px 3px 0px 0px #932427; box-shadow: 0px 3px 0px 0px #932427; position: absolute; bottom: 0; left: calc(50% - 100px); opacity: 0; cursor: pointer; -webkit-transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -webkit-transition: all 0.3s ease;
}
.more:hover { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; margin-bottom: -3px;
}
.slide, .title, .text { -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -ms-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease; }
Carousel with animation - Script Codes JS Codes
$(window).load(function(){ $('.title').css({ 'top': 90+'px', 'opacity': 1 }); $('.text').css({ 'opacity': 1 }); $('.more').css({ 'opacity': 1, 'bottom': 90+'px' });
});
$('#header-carousel').on('slid.bs.carousel', function () { $('.title').css({ 'top': 90+'px', 'opacity': 1 }); $('.text').css({ 'opacity': 1 }); $('.more').css({ 'opacity': 1, 'bottom': 90+'px' });
});
$('#header-carousel').on('slide.bs.carousel', function () { $('.title').css({ 'top': 0+'px', 'opacity': 0 }); $('.text').css({ 'opacity': 0 }); $('.more').css({ 'opacity': 0, 'bottom': 0+'px' });
});
function carouselFix() { $(".carousel.slide").carousel("pause"); $('.carousel.slide .item').removeClass('active'); $('.carousel.slide').find('.item:first').addClass('active');
}
$(document).ready(function() { carouselFix();
});
Developer | Georgi Demirev |
Username | nicotinell |
Uploaded | November 11, 2022 |
Rating | 4 |
Size | 2,865 Kb |
Views | 10,120 |
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 |
Full screen blurred background with caption | 1,946 Kb |
Layers effect with Stellar.js | 2,243 Kb |
Responsive Team Member Cards | 3,056 Kb |
Custom ordered list with FontAwesom | 2,106 Kb |
BetterNav | 5,314 Kb |
How margins work | 1,687 Kb |
FontAwesome icons with animation | 2,083 Kb |
A Pen by Georgi Demirev | 2,073 Kb |
Facebook Chat Plugin | 2,774 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 |
Popup Modal | Aldlevine | 3,696 Kb |
Template | Indra_z85 | 2,323 Kb |
Basic template | Tomcat | 1,675 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
JQuery exercise | Brian-baum | 3,780 Kb |
CSS Hover Effects | Alen | 3,613 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Very Simple Slider | Doodlemarks | 2,682 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!