Element UI is best viewed on desktop
/
/
/
/
Gradient border glow
Profile

Gradient border glow

PRO

Add an animated gradient to any container to create this ‘glow effect’. The gradient smoothly shifts between your chosen colours, creating a vibrant glowing effect around your content cards, feature boxes, or call-to-action sections. Wrap your content container inside an outer container, apply the CSS, and customise the colours to match your brand.

Released

2 months ago

Category

Custom code

CSS

Built with

Need help?

How it works

You can use different colors for each card. Swap out the color values for your own and adjust the speed by changing the speed value.

Custom css

Each card has its own CSS applied via the selector method in each of the container’s Custom CSS field
selector {
    /* 1. Adjust speed here (Lower = Faster) */
    --animation-speed: 3s; 
    
    /* 2. Adjust colors here */
    background: linear-gradient(45deg, #2a004f, #ff00c1, #ffffff, #2a004f);
    background-size: 400% 400% !important;
    
    transition: all 0.3s ease;
}

selector:hover {
    /* Animation triggers on hover */
    animation: moveGradient var(--animation-speed) ease infinite !important;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 50%; }
}
Copied to clipboard!