Skip to content

Demonstrates a CSS transitions, using only background images and headings.

Notifications You must be signed in to change notification settings

gleija/melbourne-expanding-cards

Repository files navigation

firebase

Expanding cards example

This small projects is a quick reference to show a expanding cards example. Css courtesy of Brad Traversy.

Getting Started

First of all, make sure you've installed Node.

Then install dependencies:

$ yarn

Workflow

Start a local development server:

$ yarn start

Access invoicing under http://localhost:3000/

Format code:

$ yarn format

Lint code:

$ yarn lint

Commit changes:

$ yarn commmit

Notes

1.- When a CSS rule with two selectors chained together:

.panel.active {
  flex: 5;
}

It means that Apply this style to any element that has both the class "panel" and "active".

Such as:

<div class="panel active">

2.- When using css-modules we need to find the classes in DOM as follow:

document.querySelectorAll<HTMLElement>(`.${classes.panel}`);

Without css-modules:

document.querySelectorAll<HTMLElement>(`.panel`);

About

Demonstrates a CSS transitions, using only background images and headings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published