DJ
Damian Janzi
Created Oct 17, 2021Add gradient Buttons to Bubble
347
<style>
.btn-grad {
background-image: linear-gradient(to right, #1D2B64 0%, #F8CDDA 50%, #1D2B64 100%) !important;
transition: 0.5s !important;
background-size: 200% auto !important;
}
.btn-grad:hover {
background-position: right center !important;
}
</style>
If you have multiple button styles, you need to use another class name e.g. btn-grad2. Make sure to also adjust the hover pseudo e.g. class btn-grad2:hover
Feel free to have a look at my example setup here https://bubble.io/page?type=page&name=buttons&id=bh-examples&tab=tabs-1
Well done!
Create how-to guides like this in a snap. Get Tango now.