Jump to content

NEON TEXT

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

https://lenadesign.org/2022/01/07/css-text-drop-animation/

How do I combine the two? 

I've started it but its messy. 

Code block

<h4 class="neon-text"
<div id="text-drop">
  <div class="h">R</div>
  <div class="e">e</div>
  <div class="v">v</div>
   <div class="i">i</div>
  <div class="l">e</div>
    <div class="l2">w</div>
  <div class="o">s</div>
</div>

CSS

#text-drop {
  position: relative;
  display: flex;
  font-size:60px;
  font-family: arial;
  font-weight: 900;
}

.h {
  opacity:0;
  animation: drop .4s linear forwards;
  color: #ffff;
}

.e {
  opacity:0;
  animation: drop .4s linear forwards .2s;
  color: #ffff;
}

.l {
  opacity:0;
  animation: drop .4s linear forwards .4s;
  color: #ffff;
}

.l2 {
  opacity:0;
  animation: drop .4s linear forwards .6s;
  color: #ffff;
}

.o {
  opacity:0;
  animation: drop .4s linear forwards .8s;
  color: #ffff;
}

@keyframes drop {
  0% {transform: translateY(-200px) scaleY(0.9); opacity: 0;}
  5% {opacity: .7;}
  50% {transform: translateY(0px) scaleY(1); opacity: 1;}
  65% {transform: translateY(-17px) scaleY(.9); opacity: 1;}
  75% {transform: translateY(-22px) scaleY(.9); opacity: 1;}
  100% {transform: translateY(0px) scaleY(1); opacity: 1;}
}
?

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.