Last active
April 4, 2023 13:00
-
-
Save BroFox86/cea472a2e06a40b265a4d45cceb35be8 to your computer and use it in GitHub Desktop.
[SVG Gradient] #svg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg className={s.icon} width="100" height="50" version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<linearGradient id='MyGradient'> | |
<stop offset='5%' stopColor='#F60' /> | |
<stop offset='95%' stopColor='#FF6' /> | |
</linearGradient> | |
</defs> | |
<rect width='100' height='50' fill='url(#MyGradient)' /> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.icon rect { | |
fill: url(#MyGradient); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment