← Back to FrontendMasters.com
Courses Learn Become a Member Guest Writing
RSS
/ BLOG
Author Archive for

Preethi Sam

Post Thumbnail for Background Patterns with CSS `corner-radius`
background-imageCSSPatternsSVG

Background Patterns with CSS `corner-radius`

By Preethi Sam on Feb 09, 2026

You might need to know this someday: you can style a div, put the div into SVG, then put the SVG in to CSS and use it as a repeating background.

Post Thumbnail for Toggle `position: sticky` to `position: fixed` on Scroll
CSSSticky

Toggle `position: sticky` to `position: fixed` on Scroll

By Preethi Sam on Dec 24, 2025

Fixed and sticky positioning behave very differently, but we can switch between the two at exact points for some unusual looking effects.

Post Thumbnail for Staggered Animation with CSS sibling-* Functions
CSSsibling-index()transition

Staggered Animation with CSS sibling-* Functions

By Preethi Sam on Nov 07, 2025

The new CSS sibling-index() (and -count()) functions are perfect for staggered timing affects. This goes a little step further staggering both before and after a selected element.

Post Thumbnail for CSS offset and animation-composition for Rotating Menus
Animationanimation-compositionCSSMenuoffset-path

CSS offset and animation-composition for Rotating Menus

By Preethi Sam on Sep 17, 2025

The article explains how to design and animate a *circular* menu (that rotates in a circle!) in CSS using offset and animation-composition.

Post Thumbnail for Adaptive Alerts (a CSS scroll-state Use Case)
container-typeScroll State

Adaptive Alerts (a CSS scroll-state Use Case)

By Preethi Sam on Jul 16, 2025

A single button, but it has two different behaviors in JavaScript depending on how far you’ve scrolled in an element (as determined by CSS!)

Post Thumbnail for Curved Box Cutouts in CSS

Curved Box Cutouts in CSS

By Preethi Sam on May 01, 2025

Kinda like that “bento box” look.

Post Thumbnail for Expanding CSS Shadow Effects
box-shadowCSS

Expanding CSS Shadow Effects

By Preethi Sam on Mar 28, 2025

Shadows don’t have to be used for… shadows. Inset shadows can layer over backgrounds and because they are animatable, it’s just another tool for drawing what we want to the page.

Post Thumbnail for Three Approaches to the “&” (ampersand) Selector in CSS
CSSnestingSCSS

Three Approaches to the “&” (ampersand) Selector in CSS

By Preethi Sam on Feb 07, 2025

The & is a powerful addition to CSS, allowing us to craft selectors without repetition and helping organization and understanding.

Post Thumbnail for Multi-State Buttons
ButtonsCSSInputsSearchTags

Multi-State Buttons

By Preethi Sam on Dec 05, 2024

Typically, buttons are either pressed or they aren’t. But as long as you handle it accessibly, you can make a group of radio inputs look like a multi-state button with some CSS trickery.

Post Thumbnail for CSS Fan Out with Grid and @property
@propertyAnimationCSSCustom PropertiesGrid

CSS Fan Out with Grid and @property

By Preethi Sam on Oct 09, 2024

A “fan out” animation involves sequentially revealing items from a stack with a bouncy effect. By using CSS grid, we save quite a bit of fiddly positioning work.

Author

Preethi Sam
Preethi Sam
Web Developer & Writer
Website X Profile
Older Posts →
$966,000

Frontend Masters donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.

  • Courses
  • Learn
  • Teachers
  • Guides
  • Blog
  • FAQ
  • Login
  • Join Now
  • RSS
Twitter LinkedIn Facebook Instagram RSS
Frontend Masters App on the Apple App Store Frontend Masters App on Google Play
Contact: support@frontendmasters.com
Frontend Masters is proudly made in Minneapolis, MN
©2026 Frontend Masters · Terms of Service · Privacy Policy