wangyoutian / css-and-js-code-snippets

A collection of real-life code snippets written in CSS and JavaScript for every web development project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

css-and-js-code-snippets πŸ’›

A collection of real-life code snippets written in CSS and JavaScript for every web development project. Each folder contains the stylesheet and script file (if required).

Categories 🍁

This repository is divided into mentioned categories. You may navigate accordingly to find cool web components to add to your project!

Buttons ✨

Buttons help to lead the user to a specific action on a web page. I've got cool animated buttons for different actions for you. Pick the right one for your project!

Delete Button ⚑

A Flip Delete Button to show the confirm box before deleting! Uses JS to handle the click events.
πŸ“Ž View code here.


Download Button ⚑

A Download Button animated to show download progress! Uses JS to handle the click event.
πŸ“Ž View code here.


Floating Action Button ⚑

A Floating Action Button made with "checkbox" input tag to show options when clicked.
πŸ“Ž View code here.


Search Button ⚑

A Search Button slide in animation for navigation bars! Uses JS to handle the click event.
πŸ“Ž View code here.


Send Button ⚑

A Send Button with paper plane flying animation to show "sent" state! Uses JS to handle the click event. Fontawesome is used for the icon.
πŸ“Ž View code here.


Share Button ⚑

A Share Button showing all social icons when hovered over! Fontawesome is used for the icons.
πŸ“Ž View code here.


Subscribe Button ⚑

A Subscribe Button animation to take in a user's email and get them subscribed to your work! Uses JS for click events.
πŸ“Ž View code here.


Ripple Button ⚑

A Ripple Button Click Effect which uses JS to generate ripples and CSS for the animation!
πŸ“Ž View code here.


Loaders ✨

Loaders, an important gap-filler for an api call, also garners the most creative attention from developers. I've got sleek animated loaders for you. Pick the right one for your project!

Cube Loader ⚑

A Cube Loader rotating animation made with 3D CSS transform properties!
πŸ“Ž View code here.


Hourglass Loader ⚑

An Hourglass Loader with sand filling animation made using pseudo elements in CSS!
πŸ“Ž View code here.


Text Loader ⚑

A Text Loader which uses CSS background gradient and clip properties!
πŸ“Ž View code here.


Whirlpool Loader ⚑

A Whirlpool Loader which uses CSS border properties and pseudo elements, each with a different animation speed and delay to give a whirlpool effect!
πŸ“Ž View code here.


Form Fields ✨

A list of various form fields including password validation, feedback fields, label animation and more to help you design beautiful eye-catching forms for your projects!

Multiselect Dropdown ⚑

A Multiselect Dropdown to allow user to select more than one option in a form. Uses JS to handle all functionality and CSS transform properties from animation!
πŸ“Ž View code here.


Password Validation ⚑

A Password Validation Field to handle some constraints on the password! This was built mostly to practice different JS concepts but you may use it in a project also.
πŸ“Ž View code here.


Star Rating Field ⚑

A Star Rating Field to get user rating! Uses clip-path to draw the stars and JS for the functionality.
πŸ“Ž View code here.


Feedback Field ⚑

A Feedback Field to get user feeback! Uses CSS to draw the emojis and JS for the functionality.
πŸ“Ž View code here.


Label Animation ⚑

An Input Label Animation for textboxes in forms which uses CSS pseudo classes and position properties!
πŸ“Ž View code here.


Toggle Password Field ⚑

A Toggle Password Field to show/hide password! Uses fontawesome for icons and JS to handle click events.
πŸ“Ž View code here.


Carousels ✨

Carousels are a great way to provide visually appealing multiple pieces of content on a webpage all the while using space effectively. They make it easier to incorporate animation and various features without cluttering the layout.

I've got a collection of animated carousels for you!

Split Screen Carousel

A Split Screen Carousel with half-slide-up and half-slide-down animation made using CSS pseudo elements and JS to handle click events!
πŸ“Ž View code here.


Miscellaneous ✨

Here is a collection of some random web components that may be used to practice CSS and JS concepts or even be included in projects to enhance its UI.

To-do List Check Item ⚑

A To-do List Check Item animation made with the help of "checkbox" input tag!
πŸ“Ž View code here.


Side Navigation Bar ⚑

A Side Navigation Bar to navigate through different sections on a web page using anchor tags and scroll event!
πŸ“Ž View code here.


Video Clipped Inside Text ⚑

Clipping videos inside text using CSS mix-blend properties and looping through them using JS!
πŸ“Ž View code here.


Pagination ⚑

Pagination Animation made using CSS grid and transform properties. JS is used to handle click events!
πŸ“Ž View code here.


About

A collection of real-life code snippets written in CSS and JavaScript for every web development project.


Languages

Language:CSS 49.6%Language:HTML 33.2%Language:JavaScript 17.2%