Code

Force Safari to Respect Border Radius on Images & Videos

Safari will often not respect border radiuses on images and videos. With this CSS code snippet you can force Safari to respect border radius on images and videos on your Webflow site.

Force Safari to Respect Border Radius on Images & Videos preview

Safari will often not respect border radiuses on images and videos. With this CSS code snippet you can force Safari to respect border radius on images and videos on your Webflow site.

How to add it

  1. Add CSS code snippet via an HTML embed or to the head section of your page custom code section.

The code

CSS
                      <!-- Add to HTML embed or head page settings -->
<style>

.your-class {-webkit-mask-image: -webkit-radial-gradient(white, black);}

</style>

                    

Browse similar code snippets

Categories

Language

More from Timothy Ricks

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →