diff --git a/css/LazilyRevealerPlugin.css b/css/LazilyRevealerPlugin.css index 6fa0d1d..d1e8668 100644 --- a/css/LazilyRevealerPlugin.css +++ b/css/LazilyRevealerPlugin.css @@ -1,6 +1,4 @@ -[data-lazily-revealer], -[data-lazily-revealer]::after, -[data-lazily-revealer]::before { +[data-lazily-revealer] { animation-delay: 0s; animation-direction: normal; animation-duration: 1s; @@ -18,9 +16,7 @@ visibility: hidden !important; } -[data-lazily-revealer="play"], -[data-lazily-revealer="play"]::after, -[data-lazily-revealer="play"]::before { +[data-lazily-revealer="play"] { animation-play-state: running !important; } @@ -40,9 +36,11 @@ } @media print { - [data-lazily-revealer="ready"] { + [data-lazily-revealer] { animation-fill-mode: none !important; animation-name: none !important; + } + [data-lazily-revealer="ready"] { visibility: visible !important; } } diff --git a/dist/LazilyRevealerPlugin.min.css b/dist/LazilyRevealerPlugin.min.css index 4992e89..9556945 100644 --- a/dist/LazilyRevealerPlugin.min.css +++ b/dist/LazilyRevealerPlugin.min.css @@ -1 +1 @@ -[data-lazily-revealer],[data-lazily-revealer]::after,[data-lazily-revealer]::before{animation-delay:0s;animation-direction:normal;animation-duration:1s;animation-fill-mode:backwards;animation-iteration-count:1;animation-play-state:paused!important;animation-timing-function:ease}[data-lazily-revealer]{animation-name:lazily-revealer}[data-lazily-revealer=ready]{visibility:hidden!important}[data-lazily-revealer=play],[data-lazily-revealer=play]::after,[data-lazily-revealer=play]::before{animation-play-state:running!important}@keyframes lazily-revealer{0%{opacity:0}100%{opacity:1}}@media (prefers-reduced-motion:reduce){[data-lazily-revealer]{animation-name:lazily-revealer!important}}@media print{[data-lazily-revealer=ready]{animation-fill-mode:none!important;animation-name:none!important;visibility:visible!important}} \ No newline at end of file +[data-lazily-revealer]{animation-delay:0s;animation-direction:normal;animation-duration:1s;animation-fill-mode:backwards;animation-iteration-count:1;animation-play-state:paused!important;animation-timing-function:ease}[data-lazily-revealer]{animation-name:lazily-revealer}[data-lazily-revealer=ready]{visibility:hidden!important}[data-lazily-revealer=play]{animation-play-state:running!important}@keyframes lazily-revealer{0%{opacity:0}100%{opacity:1}}@media (prefers-reduced-motion:reduce){[data-lazily-revealer]{animation-name:lazily-revealer!important}}@media print{[data-lazily-revealer]{animation-fill-mode:none!important;animation-name:none!important}[data-lazily-revealer=ready]{visibility:visible!important}} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 18980e8..5514873 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "Lazily", - "version": "1.0.1", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e408fcc..d92617b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Lazily", - "version": "1.0.1", + "version": "1.0.0", "devDependencies": { "gulp": "^4.0.2", "gulp-clean-css": "^4.3.0",