HTML & CSS / Carousel / Carousel Banner
Graw Banner
-
STEPS
1. html
2. css
@-webkit-keyframes zoom { from { -webkit-transform: scale(1, 1); } to { -webkit-transform: scale(1.5, 1.5); } } @keyframes zoom { from { transform: scale(1, 1); } to { transform: scale(1.5, 1.5); } } .carousel-item { padding:0px; transition-duration: .6s; transition-property: opacity; max-height: 350px; } .carousel-inner .carousel-item > img { -webkit-animation: zoom 20s; animation: zoom 20s; } .slide-banner { position: relative; padding: 0; } .slide-banner:before { position: absolute; content: ''; width: 100%; height: 100%; top: 0; left: 0; z-index: -2; background: url("../images/sbg.jpg") no-repeat; background-size: 100% auto; } .slide-banner .carousel-control.left, .slide-banner .carousel-control.right { background-image: none !important; position: absolute; top: auto; bottom: 40px; background: none; width: 30px; z-index: 9; border-radius: 0; padding: 0; opacity: .5; overflow: hidden; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .slide-banner .carousel-control.left:hover, .slide-banner .carousel-control.right:hover { opacity: 1; } .slide-banner .carousel-control.left img, .slide-banner .carousel-control.right img { width: 100%; } .slide-banner .carousel-control.left { left: -10px; } .slide-banner .carousel-control.right { right: auto; left: 27px; }