diff --git a/themes/openfreebooks/sass/_why-sections.scss b/themes/openfreebooks/sass/_why-sections.scss index cf82fa9..8951606 100644 --- a/themes/openfreebooks/sass/_why-sections.scss +++ b/themes/openfreebooks/sass/_why-sections.scss @@ -36,6 +36,39 @@ width: min(100%, 280px); height: auto; display: block; + overflow: visible; +} + +.why-art.is-inview .why-illustration__float { + animation: why-illustration-float 4.5s ease-in-out infinite; + transform-origin: center; + transform-box: fill-box; +} + +.why-art.is-inview .why-illustration__pulse { + animation: why-illustration-pulse 2.8s ease-in-out infinite; +} + +@keyframes why-illustration-float { + 0%, + 100% { + transform: translateY(0); + } + + 50% { + transform: translateY(-5px); + } +} + +@keyframes why-illustration-pulse { + 0%, + 100% { + opacity: 1; + } + + 50% { + opacity: 0.45; + } } .why-copy { @@ -245,6 +278,11 @@ $university-colors: ( transition: none; } + .why-illustration__float, + .why-illustration__pulse { + animation: none !important; + } + .university-carousel-track { animation: none; flex-wrap: wrap; diff --git a/themes/openfreebooks/templates/partials/svg/icons/tabler-coin.html b/themes/openfreebooks/templates/partials/svg/icons/tabler-coin.html new file mode 100644 index 0000000..9e617e5 --- /dev/null +++ b/themes/openfreebooks/templates/partials/svg/icons/tabler-coin.html @@ -0,0 +1,3 @@ + + + diff --git a/themes/openfreebooks/templates/partials/svg/icons/tabler-user.html b/themes/openfreebooks/templates/partials/svg/icons/tabler-user.html new file mode 100644 index 0000000..8fb3fa2 --- /dev/null +++ b/themes/openfreebooks/templates/partials/svg/icons/tabler-user.html @@ -0,0 +1,2 @@ + + diff --git a/themes/openfreebooks/templates/partials/svg/why-craft.html b/themes/openfreebooks/templates/partials/svg/why-craft.html index 899b6d6..627491e 100644 --- a/themes/openfreebooks/templates/partials/svg/why-craft.html +++ b/themes/openfreebooks/templates/partials/svg/why-craft.html @@ -1,14 +1,42 @@ -