Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> .mask2 { -webkit-mask-image: radial-gradient(circle, noir 50%, rgba(0, 0, 0, 0.5) 50%); mask-image: radial-gradient(circle, noir 50%, rgba(0, 0, 0, 0.5) 50%); } </style> </head> <body> <h1>Un dégradé radial comme couche de masque</h1> <p>Un dégradé radial en tant que couche de masque (un cercle) :</p> <img class="mask2" src="img_5terre.jpg" alt="Cinque Terre" width="600" height="400"> <p>Image originale :</p> <img src="img_5terre.jpg" alt="Cinque Terre" width="600" height="400"> </body> </html>