Git Product home page Git Product logo

3d-toggle-switch's Introduction

3D Toggle Switch

This project showcases a 3D toggle switch created using HTML and CSS. The toggle switch is designed with a unique 3D appearance, and it features interactive animations that respond to user interactions.

Features

  • Interactive Toggle: The toggle switch provides visual feedback when interacted with. It smoothly transitions between the on and off states.

  • 3D Appearance: The switch components are designed to create a 3D effect using gradient backgrounds, shadows, and animations.

  • Customizable Colors: The hue of the toggle switch and its accent color can be easily adjusted by modifying the CSS variables.

Usage

To use the 3D toggle switch in your project, follow these steps:

  1. Include the provided style.css stylesheet in your HTML file's <head> section:
<link rel="stylesheet" href="style.css">
  1. Place the following HTML code in the <body> of your HTML file:
<label class="switch">
  <input type="checkbox" checked />
  <div class="indicator left"></div>
  <div class="indicator right"></div>
  <div class="button"></div>
</label>
  1. Customize the switch appearance by adjusting the CSS variables defined in the style.css file. You can modify colors, dimensions, and other properties according to your preferences.
/* Example: Change the hue of the switch */
:root {
  --hue: 140deg;
}
  1. Save both the HTML and CSS files in the same directory and open the HTML file in a web browser to see the 3D toggle switch in action.

License

This project is licensed under the MIT License.

Feel free to use, modify, and distribute this code as needed while adhering to the terms of the MIT License.

Preview

Screenshot 2023-08-21 103810

Designed and implemented by Aarzoo. Inspired by various creative designs on the web.

For more details, enhancements, and contributions, visit the GitHub repository.

If you find this project helpful, consider giving it a โญ on GitHub!

3d-toggle-switch's People

Contributors

withaarzoo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

debjitpurohit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.