- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在研究使用 jQuery/CSS 的文本动画。你可以在这里找到一个链接。
https://codepen.io/pranavraghaw1/pen/MWePMPX?editors=0110
我面临的问题是在第二行 -
Insta's @TheFitFlyingFoodie
当动画运行时,最后的“ie”被切断,并且不会作为动画的一部分运行。
有人可以帮助我解决如何在我的代码中解决这个问题。
HERE IS MY PROJECT ON CODEPEN
如果有帮助,这是我的代码 -
HTML
CSS<main>
<section class="mast">
<figure class="mast__bg" style="background-image:url(https://unsplash.it/1800/800?image=893)"></figure>
<header class="mast__header">
<h1 class="mast__title js-spanize" style="font-weight:bold; font-size: 20px">PRAGYA RAGHAW</h1>
<h2 class="mast__title js-spanize" style="margin-top:-18px;font-weight:bold;font-size:15px;">Insta's @theFitFlyingFoodie</h2>
<hr class="sep"/>
<p class="mast__text js-spanize">
This is a story, all about how,
My life got twisted upside down.
So I'd like to tell a story, just sit right there.
And I'll tell you how I became the prince of Bel Air.</p>
</header>
</section>
</main>
jQuery*, *:before, *:after {
box-sizing: border-box;
}
body {
margin: 0;
width: 100%;
font-family: "Cutive Mono", monospace;
line-height: 1.5;
font-weight: 400;
font-style: normal;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
.sep {
border: 0;
width: 3em;
height: 1px;
margin: 1em 0;
background-color: rgba(255, 255, 255, 0.4);
}
.mast {
position: relative;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
width: 100%;
height: 100vh;
color: #fff;
background-color: #111;
}
.mast:after {
z-index: 0;
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(17, 17, 17, 0.9);
}
.mast > header {
z-index: 2;
position: relative;
}
.mast__bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
margin: 0;
padding: 0;
background-size: cover;
background-position: 50%;
}
.mast__header {
padding: 5%;
}
.mast__title {
font-family: "Cutive Mono", monospace;
font-size: 1em;
font-weight: 400;
letter-spacing: 0.1em;
}
.mast__title span {
-webkit-animation: letter-glow 0.7s 0s ease both;
animation: letter-glow 0.7s 0s ease both;
}
.mast__title span:nth-child(1) {
-webkit-animation-delay: 0.05s;
animation-delay: 0.05s;
}
.mast__title span:nth-child(2) {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.mast__title span:nth-child(3) {
-webkit-animation-delay: 0.15s;
animation-delay: 0.15s;
}
.mast__title span:nth-child(4) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.mast__title span:nth-child(5) {
-webkit-animation-delay: 0.25s;
animation-delay: 0.25s;
}
.mast__title span:nth-child(6) {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.mast__title span:nth-child(7) {
-webkit-animation-delay: 0.35s;
animation-delay: 0.35s;
}
.mast__title span:nth-child(8) {
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.mast__title span:nth-child(9) {
-webkit-animation-delay: 0.45s;
animation-delay: 0.45s;
}
.mast__title span:nth-child(10) {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.mast__title span:nth-child(11) {
-webkit-animation-delay: 0.55s;
animation-delay: 0.55s;
}
.mast__title span:nth-child(12) {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
.mast__title span:nth-child(13) {
-webkit-animation-delay: 0.65s;
animation-delay: 0.65s;
}
.mast__title span:nth-child(14) {
-webkit-animation-delay: 0.7s;
animation-delay: 0.7s;
}
.mast__title span:nth-child(15) {
-webkit-animation-delay: 0.75s;
animation-delay: 0.75s;
}
.mast__title span:nth-child(16) {
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.mast__title span:nth-child(17) {
-webkit-animation-delay: 0.85s;
animation-delay: 0.85s;
}
.mast__title span:nth-child(18) {
-webkit-animation-delay: 0.9s;
animation-delay: 0.9s;
}
.mast__title span:nth-child(19) {
-webkit-animation-delay: 0.95s;
animation-delay: 0.95s;
}
.mast__title span:nth-child(20) {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.mast__title span:nth-child(21) {
-webkit-animation-delay: 1.05s;
animation-delay: 1.05s;
}
.mast__title span:nth-child(22) {
-webkit-animation-delay: 1.1s;
animation-delay: 1.1s;
}
.mast__title span:nth-child(23) {
-webkit-animation-delay: 1.15s;
animation-delay: 1.15s;
}
.mast__title span:nth-child(24) {
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.mast__title span:nth-child(25) {
-webkit-animation-delay: 1.25s;
animation-delay: 1.25s;
}
.mast__text {
font-family: "Cutive Mono", monospace;
font-size: 1em;
margin: 0 0 0.5em;
line-height: 1.5;
white-space: pre;
}
.mast__text span {
-webkit-animation: letter-glow 0.7s 0s ease both;
animation: letter-glow 0.7s 0s ease both;
}
.mast__text span:nth-child(1) {
-webkit-animation-delay: 0.05s;
animation-delay: 0.05s;
}
.mast__text span:nth-child(2) {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.mast__text span:nth-child(3) {
-webkit-animation-delay: 0.15s;
animation-delay: 0.15s;
}
.mast__text span:nth-child(4) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.mast__text span:nth-child(5) {
-webkit-animation-delay: 0.25s;
animation-delay: 0.25s;
}
.mast__text span:nth-child(6) {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.mast__text span:nth-child(7) {
-webkit-animation-delay: 0.35s;
animation-delay: 0.35s;
}
.mast__text span:nth-child(8) {
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.mast__text span:nth-child(9) {
-webkit-animation-delay: 0.45s;
animation-delay: 0.45s;
}
.mast__text span:nth-child(10) {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.mast__text span:nth-child(11) {
-webkit-animation-delay: 0.55s;
animation-delay: 0.55s;
}
.mast__text span:nth-child(12) {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
.mast__text span:nth-child(13) {
-webkit-animation-delay: 0.65s;
animation-delay: 0.65s;
}
.mast__text span:nth-child(14) {
-webkit-animation-delay: 0.7s;
animation-delay: 0.7s;
}
.mast__text span:nth-child(15) {
-webkit-animation-delay: 0.75s;
animation-delay: 0.75s;
}
.mast__text span:nth-child(16) {
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.mast__text span:nth-child(17) {
-webkit-animation-delay: 0.85s;
animation-delay: 0.85s;
}
.mast__text span:nth-child(18) {
-webkit-animation-delay: 0.9s;
animation-delay: 0.9s;
}
.mast__text span:nth-child(19) {
-webkit-animation-delay: 0.95s;
animation-delay: 0.95s;
}
.mast__text span:nth-child(20) {
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.mast__text span:nth-child(21) {
-webkit-animation-delay: 1.05s;
animation-delay: 1.05s;
}
.mast__text span:nth-child(22) {
-webkit-animation-delay: 1.1s;
animation-delay: 1.1s;
}
.mast__text span:nth-child(23) {
-webkit-animation-delay: 1.15s;
animation-delay: 1.15s;
}
.mast__text span:nth-child(24) {
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.mast__text span:nth-child(25) {
-webkit-animation-delay: 1.25s;
animation-delay: 1.25s;
}
.mast__text span:nth-child(26) {
-webkit-animation-delay: 1.3s;
animation-delay: 1.3s;
}
.mast__text span:nth-child(27) {
-webkit-animation-delay: 1.35s;
animation-delay: 1.35s;
}
.mast__text span:nth-child(28) {
-webkit-animation-delay: 1.4s;
animation-delay: 1.4s;
}
.mast__text span:nth-child(29) {
-webkit-animation-delay: 1.45s;
animation-delay: 1.45s;
}
.mast__text span:nth-child(30) {
-webkit-animation-delay: 1.5s;
animation-delay: 1.5s;
}
.mast__text span:nth-child(31) {
-webkit-animation-delay: 1.55s;
animation-delay: 1.55s;
}
.mast__text span:nth-child(32) {
-webkit-animation-delay: 1.6s;
animation-delay: 1.6s;
}
.mast__text span:nth-child(33) {
-webkit-animation-delay: 1.65s;
animation-delay: 1.65s;
}
.mast__text span:nth-child(34) {
-webkit-animation-delay: 1.7s;
animation-delay: 1.7s;
}
.mast__text span:nth-child(35) {
-webkit-animation-delay: 1.75s;
animation-delay: 1.75s;
}
.mast__text span:nth-child(36) {
-webkit-animation-delay: 1.8s;
animation-delay: 1.8s;
}
.mast__text span:nth-child(37) {
-webkit-animation-delay: 1.85s;
animation-delay: 1.85s;
}
.mast__text span:nth-child(38) {
-webkit-animation-delay: 1.9s;
animation-delay: 1.9s;
}
.mast__text span:nth-child(39) {
-webkit-animation-delay: 1.95s;
animation-delay: 1.95s;
}
.mast__text span:nth-child(40) {
-webkit-animation-delay: 2s;
animation-delay: 2s;
}
.mast__text span:nth-child(41) {
-webkit-animation-delay: 2.05s;
animation-delay: 2.05s;
}
.mast__text span:nth-child(42) {
-webkit-animation-delay: 2.1s;
animation-delay: 2.1s;
}
.mast__text span:nth-child(43) {
-webkit-animation-delay: 2.15s;
animation-delay: 2.15s;
}
.mast__text span:nth-child(44) {
-webkit-animation-delay: 2.2s;
animation-delay: 2.2s;
}
.mast__text span:nth-child(45) {
-webkit-animation-delay: 2.25s;
animation-delay: 2.25s;
}
.mast__text span:nth-child(46) {
-webkit-animation-delay: 2.3s;
animation-delay: 2.3s;
}
.mast__text span:nth-child(47) {
-webkit-animation-delay: 2.35s;
animation-delay: 2.35s;
}
.mast__text span:nth-child(48) {
-webkit-animation-delay: 2.4s;
animation-delay: 2.4s;
}
.mast__text span:nth-child(49) {
-webkit-animation-delay: 2.45s;
animation-delay: 2.45s;
}
.mast__text span:nth-child(50) {
-webkit-animation-delay: 2.5s;
animation-delay: 2.5s;
}
.mast__text span:nth-child(51) {
-webkit-animation-delay: 2.55s;
animation-delay: 2.55s;
}
.mast__text span:nth-child(52) {
-webkit-animation-delay: 2.6s;
animation-delay: 2.6s;
}
.mast__text span:nth-child(53) {
-webkit-animation-delay: 2.65s;
animation-delay: 2.65s;
}
.mast__text span:nth-child(54) {
-webkit-animation-delay: 2.7s;
animation-delay: 2.7s;
}
.mast__text span:nth-child(55) {
-webkit-animation-delay: 2.75s;
animation-delay: 2.75s;
}
.mast__text span:nth-child(56) {
-webkit-animation-delay: 2.8s;
animation-delay: 2.8s;
}
.mast__text span:nth-child(57) {
-webkit-animation-delay: 2.85s;
animation-delay: 2.85s;
}
.mast__text span:nth-child(58) {
-webkit-animation-delay: 2.9s;
animation-delay: 2.9s;
}
.mast__text span:nth-child(59) {
-webkit-animation-delay: 2.95s;
animation-delay: 2.95s;
}
.mast__text span:nth-child(60) {
-webkit-animation-delay: 3s;
animation-delay: 3s;
}
.mast__text span:nth-child(61) {
-webkit-animation-delay: 3.05s;
animation-delay: 3.05s;
}
.mast__text span:nth-child(62) {
-webkit-animation-delay: 3.1s;
animation-delay: 3.1s;
}
.mast__text span:nth-child(63) {
-webkit-animation-delay: 3.15s;
animation-delay: 3.15s;
}
.mast__text span:nth-child(64) {
-webkit-animation-delay: 3.2s;
animation-delay: 3.2s;
}
.mast__text span:nth-child(65) {
-webkit-animation-delay: 3.25s;
animation-delay: 3.25s;
}
.mast__text span:nth-child(66) {
-webkit-animation-delay: 3.3s;
animation-delay: 3.3s;
}
.mast__text span:nth-child(67) {
-webkit-animation-delay: 3.35s;
animation-delay: 3.35s;
}
.mast__text span:nth-child(68) {
-webkit-animation-delay: 3.4s;
animation-delay: 3.4s;
}
.mast__text span:nth-child(69) {
-webkit-animation-delay: 3.45s;
animation-delay: 3.45s;
}
.mast__text span:nth-child(70) {
-webkit-animation-delay: 3.5s;
animation-delay: 3.5s;
}
.mast__text span:nth-child(71) {
-webkit-animation-delay: 3.55s;
animation-delay: 3.55s;
}
.mast__text span:nth-child(72) {
-webkit-animation-delay: 3.6s;
animation-delay: 3.6s;
}
.mast__text span:nth-child(73) {
-webkit-animation-delay: 3.65s;
animation-delay: 3.65s;
}
.mast__text span:nth-child(74) {
-webkit-animation-delay: 3.7s;
animation-delay: 3.7s;
}
.mast__text span:nth-child(75) {
-webkit-animation-delay: 3.75s;
animation-delay: 3.75s;
}
.mast__text span:nth-child(76) {
-webkit-animation-delay: 3.8s;
animation-delay: 3.8s;
}
.mast__text span:nth-child(77) {
-webkit-animation-delay: 3.85s;
animation-delay: 3.85s;
}
.mast__text span:nth-child(78) {
-webkit-animation-delay: 3.9s;
animation-delay: 3.9s;
}
.mast__text span:nth-child(79) {
-webkit-animation-delay: 3.95s;
animation-delay: 3.95s;
}
.mast__text span:nth-child(80) {
-webkit-animation-delay: 4s;
animation-delay: 4s;
}
.mast__text span:nth-child(81) {
-webkit-animation-delay: 4.05s;
animation-delay: 4.05s;
}
.mast__text span:nth-child(82) {
-webkit-animation-delay: 4.1s;
animation-delay: 4.1s;
}
.mast__text span:nth-child(83) {
-webkit-animation-delay: 4.15s;
animation-delay: 4.15s;
}
.mast__text span:nth-child(84) {
-webkit-animation-delay: 4.2s;
animation-delay: 4.2s;
}
.mast__text span:nth-child(85) {
-webkit-animation-delay: 4.25s;
animation-delay: 4.25s;
}
.mast__text span:nth-child(86) {
-webkit-animation-delay: 4.3s;
animation-delay: 4.3s;
}
.mast__text span:nth-child(87) {
-webkit-animation-delay: 4.35s;
animation-delay: 4.35s;
}
.mast__text span:nth-child(88) {
-webkit-animation-delay: 4.4s;
animation-delay: 4.4s;
}
.mast__text span:nth-child(89) {
-webkit-animation-delay: 4.45s;
animation-delay: 4.45s;
}
.mast__text span:nth-child(90) {
-webkit-animation-delay: 4.5s;
animation-delay: 4.5s;
}
.mast__text span:nth-child(91) {
-webkit-animation-delay: 4.55s;
animation-delay: 4.55s;
}
.mast__text span:nth-child(92) {
-webkit-animation-delay: 4.6s;
animation-delay: 4.6s;
}
.mast__text span:nth-child(93) {
-webkit-animation-delay: 4.65s;
animation-delay: 4.65s;
}
.mast__text span:nth-child(94) {
-webkit-animation-delay: 4.7s;
animation-delay: 4.7s;
}
.mast__text span:nth-child(95) {
-webkit-animation-delay: 4.75s;
animation-delay: 4.75s;
}
.mast__text span:nth-child(96) {
-webkit-animation-delay: 4.8s;
animation-delay: 4.8s;
}
.mast__text span:nth-child(97) {
-webkit-animation-delay: 4.85s;
animation-delay: 4.85s;
}
.mast__text span:nth-child(98) {
-webkit-animation-delay: 4.9s;
animation-delay: 4.9s;
}
.mast__text span:nth-child(99) {
-webkit-animation-delay: 4.95s;
animation-delay: 4.95s;
}
.mast__text span:nth-child(100) {
-webkit-animation-delay: 5s;
animation-delay: 5s;
}
.mast__text span:nth-child(101) {
-webkit-animation-delay: 5.05s;
animation-delay: 5.05s;
}
.mast__text span:nth-child(102) {
-webkit-animation-delay: 5.1s;
animation-delay: 5.1s;
}
.mast__text span:nth-child(103) {
-webkit-animation-delay: 5.15s;
animation-delay: 5.15s;
}
.mast__text span:nth-child(104) {
-webkit-animation-delay: 5.2s;
animation-delay: 5.2s;
}
.mast__text span:nth-child(105) {
-webkit-animation-delay: 5.25s;
animation-delay: 5.25s;
}
.mast__text span:nth-child(106) {
-webkit-animation-delay: 5.3s;
animation-delay: 5.3s;
}
.mast__text span:nth-child(107) {
-webkit-animation-delay: 5.35s;
animation-delay: 5.35s;
}
.mast__text span:nth-child(108) {
-webkit-animation-delay: 5.4s;
animation-delay: 5.4s;
}
.mast__text span:nth-child(109) {
-webkit-animation-delay: 5.45s;
animation-delay: 5.45s;
}
.mast__text span:nth-child(110) {
-webkit-animation-delay: 5.5s;
animation-delay: 5.5s;
}
.mast__text span:nth-child(111) {
-webkit-animation-delay: 5.55s;
animation-delay: 5.55s;
}
.mast__text span:nth-child(112) {
-webkit-animation-delay: 5.6s;
animation-delay: 5.6s;
}
.mast__text span:nth-child(113) {
-webkit-animation-delay: 5.65s;
animation-delay: 5.65s;
}
.mast__text span:nth-child(114) {
-webkit-animation-delay: 5.7s;
animation-delay: 5.7s;
}
.mast__text span:nth-child(115) {
-webkit-animation-delay: 5.75s;
animation-delay: 5.75s;
}
.mast__text span:nth-child(116) {
-webkit-animation-delay: 5.8s;
animation-delay: 5.8s;
}
.mast__text span:nth-child(117) {
-webkit-animation-delay: 5.85s;
animation-delay: 5.85s;
}
.mast__text span:nth-child(118) {
-webkit-animation-delay: 5.9s;
animation-delay: 5.9s;
}
.mast__text span:nth-child(119) {
-webkit-animation-delay: 5.95s;
animation-delay: 5.95s;
}
.mast__text span:nth-child(120) {
-webkit-animation-delay: 6s;
animation-delay: 6s;
}
.mast__text span:nth-child(121) {
-webkit-animation-delay: 6.05s;
animation-delay: 6.05s;
}
.mast__text span:nth-child(122) {
-webkit-animation-delay: 6.1s;
animation-delay: 6.1s;
}
.mast__text span:nth-child(123) {
-webkit-animation-delay: 6.15s;
animation-delay: 6.15s;
}
.mast__text span:nth-child(124) {
-webkit-animation-delay: 6.2s;
animation-delay: 6.2s;
}
.mast__text span:nth-child(125) {
-webkit-animation-delay: 6.25s;
animation-delay: 6.25s;
}
.mast__text span:nth-child(126) {
-webkit-animation-delay: 6.3s;
animation-delay: 6.3s;
}
.mast__text span:nth-child(127) {
-webkit-animation-delay: 6.35s;
animation-delay: 6.35s;
}
.mast__text span:nth-child(128) {
-webkit-animation-delay: 6.4s;
animation-delay: 6.4s;
}
.mast__text span:nth-child(129) {
-webkit-animation-delay: 6.45s;
animation-delay: 6.45s;
}
.mast__text span:nth-child(130) {
-webkit-animation-delay: 6.5s;
animation-delay: 6.5s;
}
.mast__text span:nth-child(131) {
-webkit-animation-delay: 6.55s;
animation-delay: 6.55s;
}
.mast__text span:nth-child(132) {
-webkit-animation-delay: 6.6s;
animation-delay: 6.6s;
}
.mast__text span:nth-child(133) {
-webkit-animation-delay: 6.65s;
animation-delay: 6.65s;
}
.mast__text span:nth-child(134) {
-webkit-animation-delay: 6.7s;
animation-delay: 6.7s;
}
.mast__text span:nth-child(135) {
-webkit-animation-delay: 6.75s;
animation-delay: 6.75s;
}
.mast__text span:nth-child(136) {
-webkit-animation-delay: 6.8s;
animation-delay: 6.8s;
}
.mast__text span:nth-child(137) {
-webkit-animation-delay: 6.85s;
animation-delay: 6.85s;
}
.mast__text span:nth-child(138) {
-webkit-animation-delay: 6.9s;
animation-delay: 6.9s;
}
.mast__text span:nth-child(139) {
-webkit-animation-delay: 6.95s;
animation-delay: 6.95s;
}
.mast__text span:nth-child(140) {
-webkit-animation-delay: 7s;
animation-delay: 7s;
}
.mast__text span:nth-child(141) {
-webkit-animation-delay: 7.05s;
animation-delay: 7.05s;
}
.mast__text span:nth-child(142) {
-webkit-animation-delay: 7.1s;
animation-delay: 7.1s;
}
.mast__text span:nth-child(143) {
-webkit-animation-delay: 7.15s;
animation-delay: 7.15s;
}
.mast__text span:nth-child(144) {
-webkit-animation-delay: 7.2s;
animation-delay: 7.2s;
}
.mast__text span:nth-child(145) {
-webkit-animation-delay: 7.25s;
animation-delay: 7.25s;
}
.mast__text span:nth-child(146) {
-webkit-animation-delay: 7.3s;
animation-delay: 7.3s;
}
.mast__text span:nth-child(147) {
-webkit-animation-delay: 7.35s;
animation-delay: 7.35s;
}
.mast__text span:nth-child(148) {
-webkit-animation-delay: 7.4s;
animation-delay: 7.4s;
}
.mast__text span:nth-child(149) {
-webkit-animation-delay: 7.45s;
animation-delay: 7.45s;
}
.mast__text span:nth-child(150) {
-webkit-animation-delay: 7.5s;
animation-delay: 7.5s;
}
.mast__text span:nth-child(151) {
-webkit-animation-delay: 7.55s;
animation-delay: 7.55s;
}
.mast__text span:nth-child(152) {
-webkit-animation-delay: 7.6s;
animation-delay: 7.6s;
}
.mast__text span:nth-child(153) {
-webkit-animation-delay: 7.65s;
animation-delay: 7.65s;
}
.mast__text span:nth-child(154) {
-webkit-animation-delay: 7.7s;
animation-delay: 7.7s;
}
.mast__text span:nth-child(155) {
-webkit-animation-delay: 7.75s;
animation-delay: 7.75s;
}
.mast__text span:nth-child(156) {
-webkit-animation-delay: 7.8s;
animation-delay: 7.8s;
}
.mast__text span:nth-child(157) {
-webkit-animation-delay: 7.85s;
animation-delay: 7.85s;
}
.mast__text span:nth-child(158) {
-webkit-animation-delay: 7.9s;
animation-delay: 7.9s;
}
.mast__text span:nth-child(159) {
-webkit-animation-delay: 7.95s;
animation-delay: 7.95s;
}
.mast__text span:nth-child(160) {
-webkit-animation-delay: 8s;
animation-delay: 8s;
}
.mast__text span:nth-child(161) {
-webkit-animation-delay: 8.05s;
animation-delay: 8.05s;
}
.mast__text span:nth-child(162) {
-webkit-animation-delay: 8.1s;
animation-delay: 8.1s;
}
.mast__text span:nth-child(163) {
-webkit-animation-delay: 8.15s;
animation-delay: 8.15s;
}
.mast__text span:nth-child(164) {
-webkit-animation-delay: 8.2s;
animation-delay: 8.2s;
}
.mast__text span:nth-child(165) {
-webkit-animation-delay: 8.25s;
animation-delay: 8.25s;
}
.mast__text span:nth-child(166) {
-webkit-animation-delay: 8.3s;
animation-delay: 8.3s;
}
.mast__text span:nth-child(167) {
-webkit-animation-delay: 8.35s;
animation-delay: 8.35s;
}
.mast__text span:nth-child(168) {
-webkit-animation-delay: 8.4s;
animation-delay: 8.4s;
}
.mast__text span:nth-child(169) {
-webkit-animation-delay: 8.45s;
animation-delay: 8.45s;
}
.mast__text span:nth-child(170) {
-webkit-animation-delay: 8.5s;
animation-delay: 8.5s;
}
.mast__text span:nth-child(171) {
-webkit-animation-delay: 8.55s;
animation-delay: 8.55s;
}
.mast__text span:nth-child(172) {
-webkit-animation-delay: 8.6s;
animation-delay: 8.6s;
}
.mast__text span:nth-child(173) {
-webkit-animation-delay: 8.65s;
animation-delay: 8.65s;
}
.mast__text span:nth-child(174) {
-webkit-animation-delay: 8.7s;
animation-delay: 8.7s;
}
.mast__text span:nth-child(175) {
-webkit-animation-delay: 8.75s;
animation-delay: 8.75s;
}
.mast__text span:nth-child(176) {
-webkit-animation-delay: 8.8s;
animation-delay: 8.8s;
}
.mast__text span:nth-child(177) {
-webkit-animation-delay: 8.85s;
animation-delay: 8.85s;
}
.mast__text span:nth-child(178) {
-webkit-animation-delay: 8.9s;
animation-delay: 8.9s;
}
.mast__text span:nth-child(179) {
-webkit-animation-delay: 8.95s;
animation-delay: 8.95s;
}
.mast__text span:nth-child(180) {
-webkit-animation-delay: 9s;
animation-delay: 9s;
}
@-webkit-keyframes letter-glow {
0% {
opacity: 0;
text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.1);
}
66% {
opacity: 1;
text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.9);
}
77% {
opacity: 1;
}
100% {
opacity: 0.7;
text-shadow: 0px 0px 20px rgba(255, 255, 255, 0);
}
}
@keyframes letter-glow {
0% {
opacity: 0;
text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.1);
}
66% {
opacity: 1;
text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.9);
}
77% {
opacity: 1;
}
100% {
opacity: 0.7;
text-shadow: 0px 0px 20px rgba(255, 255, 255, 0);
}
}
/*-----
Spanizer
- Wraps letters with spans, for css animations
-----*/
(function($) {
var s,
spanizeLetters = {
settings: {
letters: $('.js-spanize'),
},
init: function() {
s = this.settings;
this.bindEvents();
},
bindEvents: function(){
s.letters.html(function (i, el) {
//spanizeLetters.joinChars();
var spanizer = $.trim(el).split("");
return '<span>' + spanizer.join('</span><span>') + '</span>';
});
},
};
spanizeLetters.init();
})(jQuery);
最佳答案
“Insta 的@TheFitFlyingFoodie”长度为 27 个字符,而 mast__title 的 span:nth-child 仅为 25。您需要将 26:nth 和 27:nth child 添加到 css 中,它就会开始工作。
.mast__title span:nth-child(26) {
-webkit-animation-delay: 1.25s;
animation-delay: 1.25s;
}
.mast__title span:nth-child(27) {
-webkit-animation-delay: 1.25s;
animation-delay: 1.25s;
}
关于javascript - 使用 Css/Js 的文本动画无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64763779/
我正在学习构建单页应用程序 (SPA) 所需的所有技术。总而言之,我想将我的应用程序实现为单独的层,其中前端仅使用 API Web 服务(json 通过 socket.io)与后端通信。前端基本上是
当我看到存储在我的数据库中的日期时。 这是 正常 。日期和时间就是这样。 但是当我运行 get 请求来获取数据时。 此格式与存储在数据库 中的格式不同。为什么会发生这种情况? 最佳答案 我认为您可以将
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我正在尝试使用backbone.js 实现一些代码 和 hogan.js (http://twitter.github.com/hogan.js/) Hogan.js was developed ag
我正在使用 Backbone.js、Node.js 和 Express.js 制作一个 Web 应用程序,并且想要添加用户功能(登录、注销、配置文件、显示内容与该用户相关)。我打算使用 Passpor
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 8 年前。 Improve this ques
我尝试在 NodeJS 中加载数据,然后将其传递给 ExpressJS 以在浏览器中呈现 d3 图表。 我知道我可以通过这种方式加载数据 - https://github.com/mbostock/q
在 node.js 中,我似乎遇到了相同的 3 个文件名来描述应用程序的主要入口点: 使用 express-generator 包时,会创建一个 app.js 文件作为生成应用的主要入口点。 通过 n
最近,我有机会观看了 john papa 关于构建单页应用程序的精彩类(class)。我会喜欢的。它涉及服务器端和客户端应用程序的方方面面。 我更喜欢客户端。在他的实现过程中,papa先生在客户端有类
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我是一个图形新手,需要帮助了解各种 javascript 2D 库的功能。 . . 我从 Pixi.js 中得到了什么,而我没有从 Konva 等基于 Canvas 的库中得到什么? 我从 Konva
我正在尝试将一些 LESS 代码(通过 ember-cli-less)构建到 CSS 文件中。 1) https://almsaeedstudio.com/ AdminLTE LESS 文件2) Bo
尝试查看 Express Passport 中所有登录用户的所有 session ,并希望能够查看当前登录的用户。最好和最快的方法是什么? 我在想也许我可以在登录时执行此操作并将用户模型数据库“在线”
我有一个 React 应用程序,但我需要在组件加载完成后运行一些客户端 js。一旦渲染函数完成并加载,运行与 DOM 交互的 js 的最佳方式是什么,例如 $('div').mixItUp() 。对
请告诉我如何使用bodyparser.raw()将文件上传到express.js服务器 客户端 // ... onFilePicked(file) { const url = 'upload/a
我正在尝试从 Grunt 迁移到 Gulp。这个项目在 Grunt 下运行得很好,所以我一定是在 Gulp 中做错了什么。 除脚本外,所有其他任务均有效。我现在厌倦了添加和注释部分。 我不断收到与意外
我正在尝试更改我的网站名称。找不到可以设置标题或应用程序名称的位置。 最佳答案 您可以在 config/ 目录中创建任何文件,例如 config/app.js 包含如下内容: module.expor
经过多年的服务器端 PHP/MySQL 开发,我正在尝试探索用于构建现代 Web 应用程序的新技术。 我正在尝试对所有 JavaScript 内容进行排序,如果我理解得很好,一个有效的解决方案可以是服
我是 Nodejs 的新手。我在 route 目录中有一个 app.js 和一个 index.js。我有一个 app.use(multer....)。我还定义了 app.post('filter-re
我正在使用 angular-seed用于构建我的应用程序的模板。最初,我将所有 JavaScript 代码放入一个文件 main.js。该文件包含我的模块声明、 Controller 、指令、过滤器和
我是一名优秀的程序员,十分优秀!