CSS से इमेज पर विजुअल इफेक्ट्स जोड़ने का कोड निम्नलिखित है:
उदाहरण
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> img{ margin: 20px; } img.normal{ margin-left: 30%; width: 300px; height: 300px; } img.filter { width: 300px; height: 300px; filter: invert(100%); } </style> </head> <body> <h1 style="text-align: center;">CSS Image effects example</h1> <img class="normal" src="https://i.picsum.photos/id/237/536/354.jpg"> <img class="filter" src="https://i.picsum.photos/id/237/536/354.jpg"> </body> </html>आउटपुट
उपरोक्त कोड निम्नलिखित आउटपुट उत्पन्न करेगा:
