CSS3 new Features Code Demos & Ready to Use Code Snippts.
This repo is dedicated to all the new CSS features releasing in the CSS (So, it will remain WIP). This repo also has ready to use CSS + HTML based code snippets such as - buttons, alert, etc.
This is WIP repo and less jazzy UI (I know it should be jazzy , as we are talking about CSS).
While learning new CSS3 features and making youtube videos for JSLovers, I started this repo. Also, to reduce the development efforts I have created ready-to-use code samples for the devs.
Working on Chrome
- Clone or download the repo.
- Ready to use code is marked with
css-demo
. - Copy the code and use it in your project.
- ✅ calc
- ✅ counter
- ✅ filters
- ✅ mixins [UPDATE: NOT ANYMORE SUPPORTED]
- ✅ scroll behaviour
- ✅ variables
- ✅ writing modes
- ✅ current color
- flexbox - work in progress
- grids
- ✅ Buttons
- ✅ Alerts & Notification
- ✅ Tags
- ✅ List
- ✅ Card
- Badges
- Tables
- Images
- Forms
- Navigation
- Layouts
- Gallery
- Accordion
- Icons
- Tabs
- Slideshow
- Search
- Loaders
- Animations
Below are the ready-to-use CSS and HTML code snippts for your project. Right now, this is work-in-progress repo.
Below are the new CSS3 features code samples.
- current color
.border{
color: red;
border: 1px solid currentColor;
}
- Writing Modes
.border{
color: red;
border: 1px solid currentColor;
}
- CSS calc
.box{
width: calc(100 * 2px);
}
- CSS filters
- CSS Mixins
- CSS Variables
:root: {
--red : red;
}
.block {
color :var(--red)
}
- CSS Grids
- CSS Flexbox
- Add all possible 'ready to use' codes.
- Make the code responsive.
- Make the all examples accessible.
- Add colors options.
- Add styleguide.
If you would like to contribute please raise the PR. If you would like to add any CSS Demo:
- The demo should be only CSS based. No package, no Javascript, no pre/post-processors.
- Create the folder with
css-demo-<nameofthecomponent>
- Add the dependent files. Keep the CSS and HTML into seprate files.
- Add readme.md to explain how to use the code.
- Add the screenshot of the UI
- Make sure the HTML and CSS is valid
- Add if any property is not supported in modern browser.
You can email me at nsharma215@gmail.com or reach me on twitter @hellonehha