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

              
                <!-- Made with love by UX Manufacture - ux-manufacture.fr for more content -->
<div class="bg"></div>
<div class="header">Zoom Transition (desk only) </div>
<div class="container">
  <div class="card">
    <div class="title">01</div>
    <img src="https://ux-manufacture.fr/demo/Zoom Transition/img/1.jpg"/>
    <div class="content">
      <div class="txt"><span>Solene D.</span></div>
      <div class="txt"><span>Odessa, Ukraine</span></div>
      <div class="btn"><span>F</span><span>o</span><span>l</span><span>l</span><span>o</span><span>w</span></div>
    </div>
  </div>
  <div class="card">
    <div class="title">02</div>
    <img src="https://ux-manufacture.fr/demo/Zoom Transition/img/2.jpg"/>
    <div class="content">
      <div class="txt"><span>Margaux S.</span></div>
      <div class="txt"><span>Montpellier, France</span></div>
      <div class="btn"><span>F</span><span>o</span><span>l</span><span>l</span><span>o</span><span>w</span></div>
    </div>
  </div>
  <div class="card" id="right">
    <div class="title">03</div>
    <img src="https://ux-manufacture.fr/demo/Zoom Transition/img/3.jpg"/>
    <div class="content">
      <div class="txt"><span>Camille M.</span></div>
      <div class="txt"><span>Cologne, Allemagne</span></div>
      <div class="btn"><span>F</span><span>o</span><span>l</span><span>l</span><span>o</span><span>w</span></div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                html, body {
  overflow: hidden;
  font-size: 14px;
  font-family: "Lato";
  background-color: #222;
  color: white;
}
.header{
  text-align: center;
  margin: 10vh 0;
  font-size: 3rem;
}
.bg{
  background: url("https://labo.ux-manufacture.fr/sanbox/zoom-transition/img/bg.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 100vh;
  opacity: .45;
  animation: a-bg infinite 3s;
  width: 100vw;
  position: absolute;
}
@keyframes a-bg {
  0%{
    opacity: .45;
  }
  50%{
    opacity: 0.8;
  }
  100%{
    opacity: .45;
  }
}
.container{
  display: flex;
}

.card{
  width: 33%;
  text-align: center;
  transition: 1s;
  position: relative;
  margin:0 5rem;
  height: 100vh;
  overflow: hidden;
  border-radius: 10px;
}
.card img{
  height:50vh;
  border-radius: 10px;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translate(-50%);
  transition: 1s;
  box-shadow: 0 45px 100px rgba(14,21,47,0.4), 0 16px 40px rgba(14,21,47,0.4);
}
.card .title{
  font-size: 2rem;
  position: absolute;
  z-index: 2;
  top: 2rem;
  left: 7rem;
  opacity: 0.6;
  transition: .7s;
}
.card .content{
  position: absolute;
  text-align: right;
  right:0;
  font-size: 3rem;
  top: 50%;
  transform: translateY(-50%);
}
.card .content .txt {
  overflow: hidden;
  padding: 0 .5rem;
}

.card .content .btn  {
  cursor: pointer;
  width:fit-content;
  margin-left:auto;
  display: flex;
  overflow: hidden;
  margin-top:2rem;
  padding: 0 .5rem;
}
.card .content .txt:nth-child(2){
  font-size: 2rem;
  font-style: italic;
}

.card .content .txt span{
  display: block;
  transform:translateY(100%);
}.card .content .btn span{
  transform:translateY(100%);
}
.card:hover img{
  height:100vh;
  top:0;
  left:0;
}
.card:hover .title{
  font-size: 3rem;
  top:0;
  left: .5rem;
  opacity: 1;
}
@keyframes a-contentFadeIn {
  0%{
    transform:translateY(100%);
  }
  100%{
    transform:translateY(0%);
  }
}
.card:hover .content .txt span{
  animation: a-contentFadeIn 400ms forwards;
}
.card:hover .content .txt:nth-child(1) span{
  animation-delay: 100ms;
}
.card:hover .content .txt:nth-child(2) span{
  animation-delay: 250ms;
}
.card:hover .content .txt:nth-child(3) span{
  animation-delay: 400ms;
}
.card:hover .content .btn span{
  animation: a-contentFadeIn 400ms forwards;
}
.card:hover .content .btn span:nth-child(1) {
  animation-delay: 500ms;
}
.card:hover .content .btn span:nth-child(2) {
  animation-delay: 550ms;
}
.card:hover .content .btn span:nth-child(3) {
  animation-delay: 600ms;
}
.card:hover .content .btn span:nth-child(4) {
  animation-delay: 650ms;
}
.card:hover .content .btn span:nth-child(5) {
  animation-delay: 700ms;
}
.card:hover .content .btn span:nth-child(6) {
  animation-delay: 750ms;
}
.card#right:hover img{
  top:0;
  transform: translate(50%);
}
.card#right:hover .title{
  left:calc(100% - 4rem);
}
.card#right .content{
  text-align: left;
  left:0;
}
.card#right .content .btn {
  margin-left:0;
}
.card#right .content .btn:after{
  width:140px;
}
.card .content .btn:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  background-color: #ca00a8;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.card .content .btn:hover::after{
  transform: scaleX(1);
  transform-origin: bottom left;
}
.card#right .content .btn:hover::after{
  transform-origin: bottom left;
}
.card#right .content .btn:after {
  transform-origin: bottom right;
}

              
            
!

JS

              
                
              
            
!
999px

Console