Skip to content

Commit e9f65fb

Browse files
committed
Restore 404 page animation in WebKit
Currently scoped to WebKit because IE doesn't apply CSS animations to SVG elements at all, and Firefox doesn't properly support the transform-origin property.
1 parent df837a8 commit e9f65fb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

client/stylesheets/structures/_errorHero.sass

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
// .errorHero
1111
// .errorHero-img
12+
// .errorHero-img-boat
13+
// .errorHero-img-ocean
1214
//
1315
// *************************************
1416
@@ -37,3 +39,30 @@
3739
max-width: none
3840
position: absolute
3941
width: 90vw
42+
43+
// Scaffolding
44+
45+
// Scaffolding: Boat
46+
47+
.errorHero-img-boat
48+
animation: errorHero-img-boat 1.25s ease-in-out infinite alternate
49+
transform-origin: center
50+
51+
// Scaffolding: Ocean
52+
53+
.errorHero-img-ocean
54+
animation: slideLeft1of6 2.5s linear infinite
55+
56+
// ------------------------------------
57+
// Animations
58+
// ------------------------------------
59+
60+
// ----- Image ----- //
61+
62+
// Boat
63+
64+
@-webkit-keyframes errorHero-img-boat
65+
from
66+
transform: translateY(-$errorHero-bob-offset) rotate(-2deg)
67+
to
68+
transform: translateY($errorHero-bob-offset) rotate(1deg)

0 commit comments

Comments
 (0)