Open Source Library

Waving Flags

A Blazor component library of fluid, CSS-animated waving flags. Pick one of the built-in pride, country or kink flags, or hand it your own stripes and a logo. Each flag is sliced into columns that ripple with a staggered delay for a heavy, fabric-like wave. Inspired by the animation work of Josh W. Comeau.

Tech Stack: C# Blazor .NET 9+ CSS

Pride Flags

Every LGBTQ+ pride flag in the catalog, from the classic rainbow to the Intersex-Inclusive Progress flag.

Rainbow Pride FlagColor.RainbowOriginal
Philadelphia Pride FlagColor.Rainbow
Gilbert Baker Pride (1978) FlagColor.GilbertBaker
Progress Pride FlagColor.ProgressPride
Intersex-Inclusive Progress Pride FlagColor.IntersexInclusiveProgress
Lesbian FlagColor.Lesbian
Gay Men FlagColor.Gay
Bisexual FlagColor.Bisexual
Pansexual FlagColor.Pansexual
Polysexual FlagColor.Polysexual
Omnisexual FlagColor.Omnisexual
Asexual FlagColor.Asexual
Demisexual FlagColor.Demisexual
Graysexual FlagColor.Graysexual
Aromantic FlagColor.Aromantic
Demiromantic FlagColor.Demiromantic
Aroace FlagColor.AroAce
Polyamory FlagColor.Polyamory
Transgender FlagColor.Transgender
Non-Binary FlagColor.NonBinary
Genderfluid FlagColor.Genderfluid
Genderqueer FlagColor.Genderqueer
Agender FlagColor.Agender
Bigender FlagColor.Bigender
Demigirl FlagColor.Demigirl
Demiboy FlagColor.Demiboy
Intersex FlagColor.Intersex

Country Flags

The ten most populous countries, all drawn on a shared 3:2 canvas.

India FlagColor.India
China FlagColor.China
United States FlagColor.UnitedStates
Indonesia FlagColor.Indonesia
Pakistan FlagColor.Pakistan
Nigeria FlagColor.Nigeria
Brazil FlagColor.Brazil
Bangladesh FlagColor.Bangladesh
Russia FlagColor.Russia
Mexico FlagColor.Mexico

Kink Pride Flags

Leather, BDSM rights, puppy and rubber pride.

Leather Pride FlagColor.Leather
BDSM Rights FlagColor.BdsmRights
Puppy Pride FlagColor.PuppyPride
Rubber Pride FlagColor.RubberPride

Custom Flags

Pass CustomColors to build your own striped flag from any CSS colors, and LogoUrl to lay an image across it.

988 Lifeline Two brand stripes
#00A3A6 #7A3E96
Wikimedia Three stripes and a logo
#006699 #339966 #990000
Unity A solid color and a logo
#1e293b
Cozy Pink Site palette in HSL
hsl(330deg 85% 85%) hsl(330deg 80% 72%) hsl(330deg 70% 60%) hsl(330deg 80% 72%) hsl(330deg 85% 85%)
Acorn Autumn browns
#5B3A1E #8B5A2B #C68642 #E6B87D
Sunset Five warm stripes
#FF5F6D #FF8C5A #FFB347 #FFD56B #FFF1A8

Usage

Add @using Flags and @using Flags.Components, then drop a flag anywhere. Razor Pages and MVC apps also link _content/Flags/Flags.bundle.scp.css.

Built-in flag
<Flag Variant="FlagColor.Transgender" Width="300" />
Custom stripes
<Flag CustomColors="@(new[] { "#FF5F6D", "#FFB347", "#FFF1A8" })" NumOfColumns="15" />
With a logo
<Flag Variant="FlagColor.RainbowOriginal" LogoUrl="/images/logo.svg" />
Razor Pages / MVC
<component type="typeof(Flag)" render-mode="Static"
           param-Variant="@FlagColor.ProgressPride" param-Width="(double)64" />

Parameters: Variant, CustomColors, Width, NumOfColumns, StaggeredDelay, Billow, LogoUrl, Label. Animation stops for visitors who prefer reduced motion. Licensed under GPLv3.