LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

THE HOLY GRAIL

Re-size browser to view responsive iframe.

CSS
/*
* This example uses 16:9 Aspect Ratio:
* padding-bottom: 56.25%;
*
* For a 4:3 Aspect Ratio:
* padding-bottom: 75%;
*/
.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  margin: 0 auto;
  width: 100%;
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* END of Responsive iFrame */
html {
  background-color: #551A8B;
}

.template-container {
  color: #fff;
  font-family: "Arial";
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 4px;
}

.content-container {
  width: 80%;
  max-width: 767px;
  margin: 0 auto;
  background-color: #551A8B;
}

.header {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
}
@media (min-width: 767px) {
  .header {
    font-size: 35px;
  }
}

.border {
  width: 60px;
  margin: 24px auto;
  border-top: 1px solid #fff;
}

.notification {
  margin-top: 24px;
  margin-bottom: 150px;
  letter-spacing: 2px;
}

.animate-color-1 {
  width: 100%;
  height: 100vh;
  background-color: #f2dc5d;
  -webkit-animation: loop-colors 3s infinite;
          animation: loop-colors 3s infinite;
}

.animate-color-2 {
  width: 100%;
  height: 100vh;
  background-color: #7fc29b;
  -webkit-animation: loop-colors 1s infinite;
          animation: loop-colors 1s infinite;
}

.animate-color-3 {
  width: 100%;
  height: 100vh;
  background-color: #f28482;
  -webkit-animation: loop-colors 4s infinite;
          animation: loop-colors 4s infinite;
}

@-webkit-keyframes loop-colors {
  0% {
    background-color: #f2dc5d;
  }
  20% {
    background-color: #c5e6a6;
  }
  40% {
    background-color: #7fc29b;
  }
  60% {
    background-color: #7fb7bE;
  }
  80% {
    background-color: #f28482;
  }
  100% {
    background-color: #f2dc5d;
  }
}

@keyframes loop-colors {
  0% {
    background-color: #f2dc5d;
  }
  20% {
    background-color: #c5e6a6;
  }
  40% {
    background-color: #7fc29b;
  }
  60% {
    background-color: #7fb7bE;
  }
  80% {
    background-color: #f28482;
  }
  100% {
    background-color: #f2dc5d;
  }
}
.crown-container {
  margin: 24px 0;
}

.gems-container {
  width: 100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  top: 10px;
}

.gem {
  width: 15px;
  height: 15px;
  background-color: gold;
  border-radius: 50px;
}

.spires-container {
  width: 90px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.spire:first-of-type {
  width: 0;
  height: 0;
  border-bottom: 50px solid gold;
  border-right: 30px solid transparent;
}

.spire:nth-child(2) {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 50px solid gold;
}

.spire:last-of-type {
  width: 0;
  height: 0;
  border-bottom: 50px solid gold;
  border-left: 30px solid transparent;
}

.crown-base {
  width: 90px;
  margin: 0 auto;
  border-bottom: 24px solid gold;
  position: relative;
  bottom: 3px;
}

Description

Responsive iframe adjusts to browser size.
Term
Sat, 04/14/2018 - 20:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv