File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 58
58
width : 100% ;
59
59
left : 0 ;
60
60
top : 43% ;
61
+
62
+ /*
63
+ * Preventing flicker on some browsers
64
+ * See http://stackoverflow.com/a/36671466/1081396 or issue #183
65
+ */
66
+ -webkit-transform : translate3d (0 , 0 , 0 );
67
+ -ms-transform : translate3d (0 , 0 , 0 );
68
+ transform : translate3d (0 , 0 , 0 );
61
69
}
62
70
63
71
/*solves problem with overflowing video in Mac with Chrome */
91
99
$ ( document ) . ready ( function ( ) {
92
100
$ ( '#fullpage' ) . fullpage ( {
93
101
verticalCentered : true ,
94
- sectionsColor : [ '#1bbc9b' , '#4BBFC3' , '#7BAABE' ] ,
95
- afterRender : function ( ) {
96
-
97
-
98
- //playing the video
99
- $ ( 'video' ) . get ( 0 ) . play ( ) ;
100
- }
102
+ sectionsColor : [ '#1bbc9b' , '#4BBFC3' , '#7BAABE' ]
101
103
} ) ;
102
104
} ) ;
103
105
</ script >
135
137
136
138
< div id ="fullpage ">
137
139
< div class ="section " id ="section0 ">
138
- < video autoplay loop muted id ="myVideo ">
140
+ < video id ="myVideo " loop muted data-autoplay >
139
141
< source src ="imgs/flowers.mp4 " type ="video/mp4 ">
140
142
< source src ="imgs/flowers.webm " type ="video/webm ">
141
143
</ video >
You can’t perform that action at this time.
0 commit comments