javascript

Shape Slideshow with Clip-path

관리자 2022-11-03


An experimental slideshow using clip-path to create shape transitions between slides.



By Mary Lou in Playground on March 10, 2021



From our sponsor: Reach inboxes when it matters most with Mailchimp's data-backed email automations. Sign up for Mailchimp now.



Rounded shapes are back in fashion! Specifically, pill shaped forms are really hot right now, as can be seen on Icelandic Explorer for example:



On Gucci Beauty you can see many rounded shapes, especially rounded cards:



Window-like shapes are also super trendy, as can be seen in this beautiful poster design by Ana Sakac:



Another example is this great design by mashiqo:



I recently also stumbled across this beautiful Dribbble shot by Tyshchuk Maryna:



I thought that this might be somehow possible to do with a clip-path animation, so I started experimenting. It turns out that by using any kind of you can create a unique look for a slideshow transition, or any other kind of transition, like a hover for example:



As a result, I have created four demos showing some ideas that might spark your inspiration. I really hope you like them!



Here is that pill-shaped look I was after:



Note that for non-supporting browsers, we’ll simply see the slide move without a clip-path applied to it.



Thank you for checking by and hope you enjoy this!









출저 : https://tympanus.net/codrops/2021/03/10/shape-slideshow-with-clip-path/

댓글

배너 이미지
어떤 일이라도 노력하고 즐기면 그 결과는 을 바란다고 생각합니다.