Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.12 KB

smooth.md

File metadata and controls

42 lines (35 loc) · 1.12 KB

Smooth

?> Background::point_right: animation

<script v-pre type="text/x-template" id="single-projection"> <style> main { width: 100%; height: 329px; display: flex; background: url('./static/full-fire-cloud.jpg') repeat-x 0 center/auto 100%; animation: smooth 10s linear infinite; animation-play-state: running; } /* main:hover, main:focus { animation-play-state: running; } */ @keyframes smooth { to { background-position: 1970px center; } } </style> <script> </script> </script>

!> The picture above is a combination of two symmetrical images. it is not so perfect. In development, it is more perfect to use only one picture that can be seamlessly docked (similar to 360° panorama).

Browser Support

<iframe width="100%" height="436px" frameborder="0" src="https://caniuse.bitsofco.de/embed/index.html?feat=css-animation&periods=future_1,current,past_1,past_2,past_3&accessible-colours=false"> </iframe>