Skip to content

Commit da47096

Browse files
authored
Fix content flashing on Android Chrome (#185)
1 parent 0e61513 commit da47096

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/assets/css/common.css

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,17 @@ header.vff-header svg.f-logo {
804804
.vff-animate {
805805
-webkit-animation-duration: .4s;
806806
animation-duration: .4s;
807-
-webkit-animation-fill-mode: both;
808-
animation-fill-mode: both;
807+
-webkit-animation-fill-mode: forwards;
808+
animation-fill-mode: forwards;
809+
}
810+
811+
/* prevent Android Chrome flickering */
812+
.vff-animate * {
813+
-webkit-backface-visibility: hidden;
814+
}
815+
816+
.vff .f-fade-in {
817+
animation-name: ffadeIn;
809818
}
810819

811820
@keyframes ffadeIn {
@@ -819,8 +828,8 @@ header.vff-header svg.f-logo {
819828

820829
}
821830

822-
.vff .f-fade-in {
823-
animation-name: ffadeIn;
831+
.vff .f-fade-in-down {
832+
animation-name: ffadeInDown;
824833
}
825834

826835
@keyframes ffadeInDown {
@@ -836,8 +845,8 @@ header.vff-header svg.f-logo {
836845

837846
}
838847

839-
.vff .f-fade-in-down {
840-
animation-name: ffadeInDown;
848+
.vff .f-fade-in-up {
849+
animation-name: ffadeInUp;
841850
}
842851

843852
@keyframes ffadeInUp {
@@ -853,10 +862,6 @@ header.vff-header svg.f-logo {
853862

854863
}
855864

856-
.vff .f-fade-in-up {
857-
animation-name: ffadeInUp;
858-
}
859-
860865
/*
861866
media-start
862867
*/

0 commit comments

Comments
 (0)