Overview
This tutorial shows you how to apply a gradient background and animation effect to your Upcart rewards bar using custom CSS. This enhancement helps your reward tiers stand out and adds visual appeal to your cart. These customizations are simple to apply and are suitable for store owners or developers with basic CSS knowledge.Where to find the custom CSS editor
- Go to Upcart > Cart Editor > Settings > Custom CSS
- Scroll to the bottom of the page and paste your code into the input area
- Click Save
- Refresh your storefront to see the changes live
Example CSS for gradient animation
This code adds a diagonal shimmering gradient effect to your rewards progress bar:Alternative code for V2.0 Rewards Version
If you have upgraded your rewards to the V2 version, the code is just slightly different as the rewards selector is replaced with a new selector. Use the below code if you have upgraded your tiered rewards moduleNotes
- To change the shimmer angle, adjust
45degto another direction (example:-45deg). - To change the base bar color, use the built-in color settings in the Rewards module.