Nike Shoes Parallax Text Outline Effect

Hello guys in this tutorial we will create nike shoes parallax text outline effect using Html And Css

First we need to create two files index.html and style.css then we need to do code for it.

Step:1

Add below code inside index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Parallax Outline Effect</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta https-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="style.css" />
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet"> 
  </head>
  <body>
    <div class="parallax-outer">
      <span class="parallax-text" text="Nike">Nike</span>
      <div class="image"><img src="nike.png"></div>
    </div>
  </body>
</html>

Step:2

Then we need to add code for style.css which code i provide in below screen.

* {
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
} 
body {
    background: #01182f;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}
.parallax-outer {
    position: relative;
}
.image {
    text-align: right;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}
.parallax-text {
    font-size: 20vw;
    font-weight: 500;
    position: relative;
    color: #fafafa;
    text-transform: uppercase;
    font-style: italic;
}
.parallax-text:after {
    content: attr(text);
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    text-transform: uppercase;
    -webkit-text-stroke: 0.20vw #fafafa;
    z-index: 100;
}
img {
    width: 100%;
    max-width: 300px;
    animation: Animate 3s cubic-bezier(0.30,1,0.6,1) infinite alternate; 
}
@keyframes Animate {
    0%, 10% {
            transform: translate(-20vw, 0) rotate(15deg); 
    }
    90%, 100% {
        transform: translate(100px, -20px) rotate(-30deg); 
    }
}

Output:

Leave a Comment