Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link
      rel="stylesheet"
      href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
      integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
      crossorigin="anonymous"
    />
    <link
      href="https://fonts.googleapis.com/css?family=Josefin+Sans:300,300i,400,400i,600|Montserrat:300,300i,400,400i,500,500i,600,600i,700|Ubuntu:300,300i,400,400i,500,500i,700"
      rel="stylesheet"
    />
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
    />
    <link rel="stylesheet" href="style.css" />
    <title>Profile Cards</title>
  </head>
  <body>
    <div class="container">
      <div class="heading"></div>
      <div class="card-wrapper">
        <div class="card">
          <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTcpdKi8lqo15N-cMySn_rCqh2FN00YrJIA8A&usqp=CAU" alt="" class="image-top" />
          <img src="https://i.pinimg.com/736x/9a/63/81/9a6381c78f643698f075114f7257b500.jpg" alt="" class="profile-image" />
          <h1 class="fullname">Jane Smith</h1>
          <p class="job">Web Desinger</p>
          <p class="about-me">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempora
            eligendi architecto nesciunt nulla, ad sapiente maiores molestiae
            eos doloremque quo facere a dignissimos mollitia neque alias
            dolorum. Consequatur, molestiae vitae.
          </p>
          <button type="button">Explore Me</button>
          <ul class="social-icons">
            <li>
              <a href="#"><i class="fa fa-facebook-f"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-youtube"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-twitter"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-google-plus-g"></i></a>
            </li>
          </ul>
        </div>
        <div class="card">
          <img src="https://static.photocdn.pt/images/articles/2019/05/20/Advanced_Landscape_Photography_Tips.jpg" alt="" class="image-top" />
          <img src="https://i.pinimg.com/originals/b5/a4/9c/b5a49c910238c6cb919fc97595ed0dff.jpg" alt="" class="profile-image" />
          <h1 class="fullname">Brad Scott</h1>
          <p class="job">Web Graphic Desinger</p>
          <p class="about-me">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempora
            eligendi architecto nesciunt nulla, ad sapiente maiores molestiae
            eos doloremque quo facere a dignissimos mollitia neque alias
            dolorum. Consequatur, molestiae vitae.
          </p>
          <button type="button">Explore Me</button>
          <ul class="social-icons">
            <li>
              <a href="#"><i class="fa fa-facebook-f"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-youtube"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-twitter"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-google-plus-g"></i></a>
            </li>
          </ul>
        </div>
        <div class="card">
          <img src="https://eloquentnature.files.wordpress.com/2015/01/a7riiynpspringapr2015_dsc5460elcapitanthreebrothersreflection_blog.jpg?w=600" alt="" class="image-top" />
          <img src="https://i.pinimg.com/originals/58/66/51/5866510fd041bb2de306461b06f8e725.jpg" alt="" class="profile-image" />
          <h1 class="fullname">Cole Lee</h1>
          <p class="job">Web Developter</p>
          <p class="about-me">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempora
            eligendi architecto nesciunt nulla, ad sapiente maiores molestiae
            eos doloremque quo facere a dignissimos mollitia neque alias
            dolorum. Consequatur, molestiae vitae.
          </p>
          <button type="button">Explore Me</button>
          <ul class="social-icons">
            <li>
              <a href="#"><i class="fa fa-facebook-f"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-youtube"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-twitter"></i></a>
            </li>
            <li>
              <a href="#"><i class="fa fa-google-plus-g"></i></a>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <script src="app.js"></script>
  </body>
</html>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
    url(https://1.bp.blogspot.com/__iQioQ8yx0k/S-tbTaSKrUI/AAAAAAAAAMs/S8g1d5-OaU8/s1600/spring-wallpaper-1440x900-0912087.jpg) center no-repeat;
  background-size: cover;
}

.heading {
  color: #fff;
  font-size: 70px;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Josefin Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-align: center;
  /* making an accucor */
  white-space: pre-wrap;
}
/* making an accucor */
.heading::after {
  content: "";
  width: 5px;
  height: 55px;
  background-color: #fff;
  position: absolute;
  animation: blinking 1s 3s infinite; 
}
/* curror blinking after to the end */
@keyframes blinking {
  0% {
    background-color: #fff;
  }
  50% {
    background-color: transparent;
  }
  100% {
    background-color: #fff;
  }
}
/* card will show up one by one after heading finish typing */
@keyframes cardAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.card:nth-child(1) {
  animation: cardAnim 2s 3s backwards;
}
.card:nth-child(2) {
  animation: cardAnim 2s 3.5s backwards;
}
.card:nth-child(3) {
  animation: cardAnim 2s 4s backwards;
}

/* card postion */
.card-wrapper {
  width: 80%;
  display: flex;
  justify-content: space-evenly;
  position: relative;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
}
.card {
  width: 280px;
  background-color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  transition: transform 0.5s;
}
/* increase elements inside card */
.card:hover {
  transform: scale(1.1);
}
.image-top {
  width: 100%;
  height: 220px;
  /* not strech picuture */
  object-fit: cover;
  /* https://bennettfeely.com/clippy */
  clip-path: polygon(0 0, 100% 0, 100% 79%, 0% 100%);
}

.profile-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: -110px;
  z-index: 10;
  border: 8px solid #eee;
}

.card h1 {
  font-family: "Ubuntu", sans-serif;
  font-size: 22px;
  color: #555;
  margin: 10px;
}

.job {
  font-family: "Monserrat", sans-serif;
  color: #777;
  font-weight: 300;
}
.about-me {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  width: 90%;
  margin: 15px 0;
  font-style: italic;
  color: #444;
  text-align: center;
}

.card button {
  width: 120px;
  padding: 7px;
  margin: 10px 0;
  background-color: tomato;
  border: none;
  outline: none;
  border-radius: 25px;
  font-family: "Josefin Sans", sans-serif;
  color: #eee;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
}
.card:hover button {
  animation: buttonRotation 2s 0.5s linear; 
}
@keyframes buttonRotation {
  0% {
    transform: scale(1) rotateZ(0);
  }
  5% {
    transform: scale(1.2) rotateZ(5deg);
  }
  10% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  15% {
    transform: scale(1.2) rotateZ(5deg);
  }
  20% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  25% {
    transform: scale(1.2) rotateZ(5deg);
  }
  30% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  35% {
    transform: scale(1.2) rotateZ(5deg);
  }
  40% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  45% {
    transform: scale(1.2) rotateZ(5deg);
  }
  50% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  55% {
    transform: scale(1.2) rotateZ(5deg);
  }
  60% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  55% {
    transform: scale(1.2) rotateZ(5deg);
  }
  70% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  75% {
    transform: scale(1.2) rotateZ(5deg);
  }
  80% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  85% {
    transform: scale(1.2) rotateZ(5deg);
  }
  90% {
    transform: scale(1.2) rotateZ(-5deg);
  }
  95% {
    transform: scale(1.2) rotateZ(5deg);
  }
  100% {
    transform: scale(1) rotateZ(0);
  }
}
.social-icons {
  width: 150px;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  margin: 10px 0 20px 0;
  border-top: 1px solid #999;
  padding-top: 20px;
}

.social-icons i {
  font-size: 18px;
}
.fa-facebook-f {
  color: #3b5999;
}
.fa-youtube {
  color: #cd201f;
}
.fa-twitter {
  color: #55acee;
}
.fa-google-plus-g {
  color: #dd4b39;
}

@media (max-width: 1300px) {
  .heading {
    font-size: 65px;
    width: 80%;
  }
  .card-wrapper {
    width: 100%;
    top: 32%;
  }
  .image-top {
    height: 200px;
  }
}

@media (max-width: 1000px) {
  .container {
    height: 100%;
  }
  .heading {
    width: 90%;
  }
  .card-wrapper {
    flex-wrap: wrap;
    padding: 300px 0 200px 0;
  }
  .card {
    margin: 0 30px 50px 30px;
  }
}

@media (max-width: 700px) {
  .heading {
    font-size: 50px;
  }
  .heading::after {
    height: 40px;
  }
}

@media (max-width: 450px) {
  .heading {
    font-size: 40px;
  }
  .heading::after {
    height: 33px;
  }
  .cards-wrapper {
    padding: 250px 0 150px 0;
  }
}

              
            
!

JS

              
                const heading = "Please Meet Our Team";
let i = 0;
// heading typing each letter in 150ms
const typing = () => {
  if (i < heading.length) {
    document.querySelector(".heading").innerHTML += heading.charAt(i);
    i++;
    setTimeout(typing, 150);
  }
};

typing();

              
            
!
999px

Console