File size: 3,412 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
@import "../../../mixins.scss";
.videosSection {
position: relative;
margin-bottom: 50px;
.sectionHeading {
font-size: 24px;
color: white;
margin-bottom: 25px;
}
.videos {
display: flex;
gap: 10px;
overflow-x: auto;
margin-right: -20px;
margin-left: -20px;
padding: 0 20px;
@include md {
gap: 20px;
margin: 0;
padding: 0;
}
.videoItem {
width: 150px;
flex-shrink: 0;
@include md {
width: 25%;
}
cursor: pointer;
.videoThumbnail {
margin-bottom: 15px;
position: relative;
img {
width: 100%;
display: block;
border-radius: 12px;
transition: all 0.7s ease-in-out;
}
svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 50px;
height: 50px;
}
.triangle {
stroke-dasharray: 240;
stroke-dashoffset: 480;
stroke: white;
transform: translateY(0);
transition: all 0.7s ease-in-out;
}
.circle {
stroke: white;
stroke-dasharray: 650;
stroke-dashoffset: 1300;
transition: all 0.5s ease-in-out;
}
&:hover {
img {
opacity: 0.5;
}
.triangle {
stroke-dashoffset: 0;
opacity: 1;
stroke: var(--pink);
animation: trailorPlay 0.7s ease-in-out;
}
.circle {
stroke-dashoffset: 0;
stroke: var(--pink);
}
}
}
.videoTitle {
color: white;
font-size: 14px;
line-height: 20px;
@include md {
font-size: 16px;
line-height: 24px;
}
}
}
}
.videoSkeleton {
display: flex;
gap: 10px;
overflow-x: auto;
margin-right: -20px;
margin-left: -20px;
padding: 0 20px;
@include md {
gap: 20px;
margin: 0;
padding: 0;
}
.skItem {
width: 150px;
flex-shrink: 0;
@include md {
width: 25%;
}
.thumb {
width: 100%;
aspect-ratio: 16 / 9;
border-radius: 12px;
margin-bottom: 10px;
}
.row {
height: 20px;
width: 100%;
border-radius: 10px;
margin-bottom: 10px;
}
.row2 {
height: 20px;
width: 75%;
border-radius: 10px;
}
}
}
}
|