본문 바로가기

Animated text fill 애니메이션 텍스트

반응형

Spice up your type with CSS Animated text fill — no JavaScript required —

소스

<style>
.myanimated{
  width: 100%;
  height: 450px;
  font: 400 1em/1.5 "Neuton";
  background: #090d00;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin: 0;
  border-radius: 10px;
}

.myanimated p{
  text-transform: uppercase;
  letter-spacing: 0.5em;
  display: inline-block;
  border: 4px double rgba(255, 255, 255, 0.25);
  border-width: 4px 0;
  padding: 1.5em 0em;
  position: absolute;
  top: 18%;
  left: 50%;
  width: 40em;
  margin: 0 0 0 -20em;
}
.myanimated p span {
  font: 700 4em/1 "Oswald", sans-serif;
  letter-spacing: 0;
  padding: 0.25em 0 0.325em;
  display: block;
  margin: 0 auto;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
  background: url(https://i.ibb.co/RDTnNrT/animated-text-fill.png) repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-animation: aitf 80s linear infinite;
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
}
@-webkit-keyframes aitf {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
</style>
<div class="myanimated"><p>Spice up your type with CSS
 <span>Animated text fill</span>
  &mdash; no JavaScript required &mdash;
</p></div>
반응형

'디자인소스' 카테고리의 다른 글

심플한 오디오 플레이어 HTML5 Audio CSS style  (0) 2023.09.23
CSS 웹 페이지 터치 이벤트  (0) 2023.09.23
깔끔한 jQuery Audio Player  (0) 2023.09.23
HLS M3U8 Player  (0) 2023.09.21
Placeholder 포커스시 감추기, 글자색 변경  (0) 2023.09.21
CSS3 Loader & Spinners 모음  (0) 2023.09.20
Glowing Pulse Search Form  (0) 2023.09.20
CSS3 Checkbox Styles  (0) 2023.09.19

댓글


Copyright ⓒ SmartWeb All rights reserved.