1 | .lg-outer .lg-video-cont {
|
2 | text-align: center;
|
3 | display: inline-block;
|
4 | vertical-align: middle;
|
5 | position: relative;
|
6 | }
|
7 |
|
8 | .lg-outer .lg-video-cont .lg-object {
|
9 | width: 100% !important;
|
10 | height: 100% !important;
|
11 | }
|
12 |
|
13 | .lg-outer .lg-has-iframe .lg-video-cont {
|
14 | -webkit-overflow-scrolling: touch;
|
15 | overflow: auto;
|
16 | }
|
17 |
|
18 | .lg-outer .lg-video-object {
|
19 | position: absolute;
|
20 | left: 0;
|
21 | right: 0;
|
22 | width: 100%;
|
23 | height: 100%;
|
24 | top: 0;
|
25 | bottom: 0;
|
26 | z-index: 3;
|
27 | }
|
28 |
|
29 | .lg-outer .lg-video-poster {
|
30 | z-index: 1;
|
31 | }
|
32 |
|
33 | .lg-outer .lg-has-video .lg-video-object {
|
34 | opacity: 0;
|
35 | will-change: opacity;
|
36 | -webkit-transition: opacity 0.3s ease-in;
|
37 | -o-transition: opacity 0.3s ease-in;
|
38 | transition: opacity 0.3s ease-in;
|
39 | }
|
40 |
|
41 | .lg-outer .lg-has-video.lg-video-loaded .lg-video-poster,
|
42 | .lg-outer .lg-has-video.lg-video-loaded .lg-video-play-button {
|
43 | opacity: 0 !important;
|
44 | }
|
45 |
|
46 | .lg-outer .lg-has-video.lg-video-loaded .lg-video-object {
|
47 | opacity: 1;
|
48 | }
|
49 |
|
50 | @keyframes lg-play-stroke {
|
51 | 0% {
|
52 | stroke-dasharray: 1, 200;
|
53 | stroke-dashoffset: 0;
|
54 | }
|
55 | 50% {
|
56 | stroke-dasharray: 89, 200;
|
57 | stroke-dashoffset: -35px;
|
58 | }
|
59 | 100% {
|
60 | stroke-dasharray: 89, 200;
|
61 | stroke-dashoffset: -124px;
|
62 | }
|
63 | }
|
64 |
|
65 | @keyframes lg-play-rotate {
|
66 | 100% {
|
67 | -webkit-transform: rotate(360deg);
|
68 | transform: rotate(360deg);
|
69 | }
|
70 | }
|
71 |
|
72 | .lg-video-play-button {
|
73 | width: 18%;
|
74 | max-width: 140px;
|
75 | position: absolute;
|
76 | top: 50%;
|
77 | left: 50%;
|
78 | z-index: 2;
|
79 | cursor: pointer;
|
80 | transform: translate(-50%, -50%) scale(1);
|
81 | will-change: opacity, transform;
|
82 | -webkit-transition: -webkit-transform 0.25s cubic-bezier(0.17, 0.88, 0.32, 1.28), opacity 0.1s;
|
83 | -moz-transition: -moz-transform 0.25s cubic-bezier(0.17, 0.88, 0.32, 1.28), opacity 0.1s;
|
84 | -o-transition: -o-transform 0.25s cubic-bezier(0.17, 0.88, 0.32, 1.28), opacity 0.1s;
|
85 | transition: transform 0.25s cubic-bezier(0.17, 0.88, 0.32, 1.28), opacity 0.1s;
|
86 | }
|
87 |
|
88 | .lg-video-play-button:hover .lg-video-play-icon-bg,
|
89 | .lg-video-play-button:hover .lg-video-play-icon {
|
90 | opacity: 1;
|
91 | }
|
92 |
|
93 | .lg-video-play-icon-bg {
|
94 | fill: none;
|
95 | stroke-width: 3%;
|
96 | stroke: #fcfcfc;
|
97 | opacity: 0.6;
|
98 | will-change: opacity;
|
99 | -webkit-transition: opacity 0.12s ease-in;
|
100 | -o-transition: opacity 0.12s ease-in;
|
101 | transition: opacity 0.12s ease-in;
|
102 | }
|
103 |
|
104 | .lg-video-play-icon-circle {
|
105 | position: absolute;
|
106 | top: 0;
|
107 | left: 0;
|
108 | bottom: 0;
|
109 | right: 0;
|
110 | fill: none;
|
111 | stroke-width: 3%;
|
112 | stroke: rgba(30, 30, 30, 0.9);
|
113 | stroke-opacity: 1;
|
114 | stroke-linecap: round;
|
115 | stroke-dasharray: 200;
|
116 | stroke-dashoffset: 200;
|
117 | }
|
118 |
|
119 | .lg-video-play-icon {
|
120 | position: absolute;
|
121 | width: 25%;
|
122 | max-width: 120px;
|
123 | left: 50%;
|
124 | top: 50%;
|
125 | transform: translate3d(-50%, -50%, 0);
|
126 | opacity: 0.6;
|
127 | will-change: opacity;
|
128 | -webkit-transition: opacity 0.12s ease-in;
|
129 | -o-transition: opacity 0.12s ease-in;
|
130 | transition: opacity 0.12s ease-in;
|
131 | }
|
132 |
|
133 | .lg-video-play-icon .lg-video-play-icon-inner {
|
134 | fill: #fcfcfc;
|
135 | }
|
136 |
|
137 | .lg-video-loading .lg-video-play-icon-circle {
|
138 | animation: lg-play-rotate 2s linear 0.25s infinite, lg-play-stroke 1.5s ease-in-out 0.25s infinite;
|
139 | }
|
140 |
|
141 | .lg-video-loaded .lg-video-play-button {
|
142 | opacity: 0;
|
143 | transform: translate(-50%, -50%) scale(0.7);
|
144 | }
|