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.
Pride Flags
Every LGBTQ+ pride flag in the catalog, from the classic rainbow to the Intersex-Inclusive Progress flag.
FlagColor.RainbowOriginal
FlagColor.Rainbow
FlagColor.GilbertBaker
FlagColor.ProgressPride
FlagColor.IntersexInclusiveProgress
FlagColor.Lesbian
FlagColor.Gay
FlagColor.Bisexual
FlagColor.Pansexual
FlagColor.Polysexual
FlagColor.Omnisexual
FlagColor.Asexual
FlagColor.Demisexual
FlagColor.Graysexual
FlagColor.Aromantic
FlagColor.Demiromantic
FlagColor.AroAce
FlagColor.Polyamory
FlagColor.Transgender
FlagColor.NonBinary
FlagColor.Genderfluid
FlagColor.Genderqueer
FlagColor.Agender
FlagColor.Bigender
FlagColor.Demigirl
FlagColor.Demiboy
FlagColor.Intersex
Country Flags
The ten most populous countries, all drawn on a shared 3:2 canvas.
FlagColor.India
FlagColor.China
FlagColor.UnitedStates
FlagColor.Indonesia
FlagColor.Pakistan
FlagColor.Nigeria
FlagColor.Brazil
FlagColor.Bangladesh
FlagColor.Russia
FlagColor.Mexico
Kink Pride Flags
Leather, BDSM rights, puppy and rubber pride.
FlagColor.Leather
FlagColor.BdsmRights
FlagColor.PuppyPride
FlagColor.RubberPride
Custom Flags
Pass CustomColors to build your own striped flag from any CSS colors,
and LogoUrl to lay an image across it.
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.
<Flag Variant="FlagColor.Transgender" Width="300" />
<Flag CustomColors="@(new[] { "#FF5F6D", "#FFB347", "#FFF1A8" })" NumOfColumns="15" />
<Flag Variant="FlagColor.RainbowOriginal" LogoUrl="/images/logo.svg" />
<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.