Step 11 of 11 · 6 min read
Custom CSS: add pro effects
Paste ready-made CSS to add hover effects, gradients, glass panels and more to any container or widget.
Where the CSS box is
- 1Click a container (a section or a box) and open the Advanced tab. Custom CSS is at the bottom.
- 2Or click a widget, such as a heading, image or button: Custom CSS is at the bottom of its settings.
- 3What you type only changes that one container or widget, never the rest of the site.
Tip: Change one thing at a time and check the preview. To undo, delete what you typed.
How to write it
Plain lines like colour or shadow change the selected element itself. To style something inside it, write that thing's name and braces, like h2 { } or img { }. For the element's own hover state, start the line with &, like &:hover { }.
/* The element itself */
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0,0,0,.12);
/* Things inside it */
h2 { letter-spacing: -0.02em; }
img { border-radius: 50%; }
/* When the mouse is over it */
&:hover { transform: translateY(-6px); }Copying CSS from other sites
Most snippets you find online start with a class name, such as .card or .btn. Replace that name with & and paste it in.
/* Snippet from the web */
.card:hover { transform: scale(1.03); }
/* Pasted into MoDesign */
&:hover { transform: scale(1.03); }Tip: Snippets that need their own HTML (extra boxes) or JavaScript won't work here; @import lines are removed for safety.
Ready to paste: lift on hover
Cards and boxes rise and cast a softer shadow when visitors point at them.
transition: transform .3s, box-shadow .3s;
&:hover {
transform: translateY(-8px);
box-shadow: 0 30px 60px -20px rgba(0,0,0,.25);
}Ready to paste: gradient text
Select a heading widget and paste this for a two-colour gradient. Change the two colours to yours.
background: linear-gradient(90deg, #6e24fb, #ff5c8a);
-webkit-background-clip: text;
background-clip: text;
color: transparent;Ready to paste: frosted glass panel
Works best on a box placed over a photo background.
background: rgba(255,255,255,.18);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255,255,255,.35);
border-radius: 24px;Ready to paste: zoom photos on hover
Select a container with images in it, such as a gallery or a card.
overflow: hidden;
img { transition: transform .6s; }
&:hover img { transform: scale(1.06); }Ready to paste: wavy bottom edge
Gives a coloured section a wave along its bottom.
clip-path: polygon(0 0, 100% 0, 100% 88%, 75% 96%, 50% 90%, 25% 98%, 0 90%);Free places to find more
These sites have free CSS you can copy or generate: Uiverse.io (buttons, cards and loaders), CSS-Tricks snippets, CodePen (search for an effect; check each pen's licence), Animista (animations), cssgradient.io (gradients), neumorphism.io (soft shadows), shadows.brumm.af (layered shadows), getwaves.io and haikei.app (waves and blob shapes), and coolors.co for colour palettes.
Tip: Fonts and colours are easier to set in Design, so the whole site stays consistent. Keep custom CSS for special touches.