Thursday, September 1, 2022
HomeWordPress DevelopmentEasy CSS Carousel - DEV Group πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Easy CSS Carousel – DEV Group πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»


A easy CSS Carousel. For extra CSS Carousels go to – xcattx.com



The Html Half

<!DOCTYPE html>
<html lang="en" >
<head>
  <title></title>
  <hyperlink rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
</head>
<physique>
  <determine>
<div class="carousel dissolve">
  <div class="objects">
      <img class="merchandise" src="https://farm8.staticflickr.com/7020/6767599565_e0ffee2813_d.jpg" alt="">
      <img class="merchandise" src="https://farm8.staticflickr.com/7016/6767598507_21720ed21f_d.jpg" alt="Seven to 10 at Leeds &amp; Holbeck">
      <img class="merchandise" src="https://farm8.staticflickr.com/7163/6767596393_8f8b9609ec_d.jpg" alt="Banksy">
      <img class="merchandise" src="https://farm8.staticflickr.com/7004/6767593255_ae68f10fac_d.jpg" alt="Bristol autumn">
   </div>
</div>
</determine>
</physique>
</html>
Enter fullscreen mode

Exit fullscreen mode



The CSS Half

.dissolve {
  width: 287px;
  top: 430px;
  place: relative;
  overflow: hidden;
}
.dissolve .merchandise {
  place: absolute;
  left: 0;
  proper: 0;
  opacity: 0;
  animation: dissolve 8s linear infinite;
}
.dissolve .merchandise:nth-child(2) {
  animation-delay: 2s;
}
.dissolve .merchandise:nth-child(3) {
  animation-delay: 4s;
}
.dissolve .merchandise:nth-child(4) {
  animation-delay: 6s;
}
@-webkit-keyframes dissolve {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  5%,
  25% {
    opacity: 1;
  }
}
@-moz-keyframes dissolve {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  5%,
  25% {
    opacity: 1;
  }
}
@-ms-keyframes dissolve {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  5%,
  25% {
    opacity: 1;
  }
}
@keyframes dissolve {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  5%,
  25% {
    opacity: 1;
  }
}
/* Only a ornament */
@font-face {
  font-family: 'Trykker';
  font-style: regular;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/trykker/v21/KtktALyWZJXudUPztN7iPQ.ttf) format('truetype');
}
img {
  max-width: 100%;
  show: block;
}
physique {
  font-family: 'Trykker', serif;
  padding: 1em;
  background-color:#000000;
}
determine {
  width: 287px;
  margin: 10px auto 0;
}
determine .carousel {
  width: 287px;
  box-shadow: 0 0 0 10px #fff, 0 0.3em 0.8em 10px black;
}
determine figcaption {
  text-transform: uppercase;
  margin-top: 10px;
  padding-top: 0.5em;
  font-size: 1.2em;
  text-align: heart;
  coloration: #999;
  text-shadow: 0 -0.1em 0 rgba(0, 0, 0, 0.6);
}
determine figcaption:earlier than,
determine figcaption:after {
  content material: "2014";
  font-family: "Occasions New Roman", serif;
  text-shadow: none;
  coloration: rgba(255, 255, 255, 0.2);
}
determine figcaption:earlier than {
  margin-right: 0.3em;
}
determine figcaption:after {
  margin-left: 0.3em;
}
determine p {
  coloration: #999;
  text-align: heart;
}
determine p a {
  coloration: #06afd8;
}
Enter fullscreen mode

Exit fullscreen mode



The Output

Image description

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments