| 1 |
// // title animate effect.................................................. |
| 2 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title { |
| 3 |
position: relative; |
| 4 |
display: inline-block; |
| 5 |
} |
| 6 |
|
| 7 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:after { |
| 8 |
content: ""; |
| 9 |
position: absolute; |
| 10 |
transition: width 0.6s ease; |
| 11 |
} |
| 12 |
|
| 13 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title::before { |
| 14 |
content: ""; |
| 15 |
position: absolute; |
| 16 |
transition: width 0.6s ease; |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title .line { |
| 21 |
position: relative; |
| 22 |
display: inline-block; |
| 23 |
padding-bottom: 2px; |
| 24 |
} |
| 25 |
|
| 26 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title .line::after { |
| 27 |
content: ''; |
| 28 |
position: absolute; |
| 29 |
bottom: 0; |
| 30 |
left: 0; |
| 31 |
width: 100%; |
| 32 |
// height: 2px; |
| 33 |
// background: linear-gradient(90deg, #ff416c, #ff4b2b); |
| 34 |
// transform-origin: left; |
| 35 |
transform: scaleX(0); |
| 36 |
transition: transform 0.4s ease; |
| 37 |
z-index: -1; |
| 38 |
} |
| 39 |
|
| 40 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line::after { |
| 41 |
transform: scaleX(1); |
| 42 |
} |
| 43 |
|
| 44 |
/* Using :nth-of-type to target only .line elements */ |
| 45 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after { |
| 46 |
transition-delay: 0s; |
| 47 |
} |
| 48 |
|
| 49 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after { |
| 50 |
transition-delay: 0.2s; |
| 51 |
} |
| 52 |
|
| 53 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after { |
| 54 |
transition-delay: 0.4s; |
| 55 |
} |
| 56 |
|
| 57 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after { |
| 58 |
transition-delay: 0.6s; |
| 59 |
} |
| 60 |
|
| 61 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after { |
| 62 |
transition-delay: 0.8s; |
| 63 |
} |
| 64 |
|
| 65 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after { |
| 66 |
transition-delay: 1s; |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(7)::after { |
| 71 |
transition-delay: 1.2s; |
| 72 |
} |
| 73 |
|
| 74 |
.sp-smart-post-timeline-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(8)::after { |
| 75 |
transition-delay: 1.4s; |
| 76 |
} |