content logo

Bootstrap Toggle Switches:

Bootstrap Dark Blue Toggle Switch

Most Websites have an icon that allows the users to vote in the questions easily. If you have a website and like to be successful, you can use the following bootstrap to attract people. The Bootstrap Dark Blue Toggle Switch is the best idea to gain more visitors. When people enter your website, they like to vote in different events. As a result, they quickly engage in websites with HTML Toggle Switch Code. This Free Toggle Switch Code allows you to ask some questions to your audiences. Consider that all of these questions must be yes/no or have just two answers. By using the following code, you can be aware of your visitor’s opinion.

We have prepared a preview for this code below. You can look at the Pure CSS Switch Button preview and realize its uniqueness. As you see here, this Blue Switch Code has a simple but beautiful button. This button has a blue theme with an oval shape. You can use this code if you have a website with a blue theme. There is a smaller circle in this elliptical, and as you click on it, it moves to the other side slightly.

#

Free Toggle Switch Code

#

HTML Toggle Switch Code

#

Pure CSS Switch Button

#

Blue Switch Code

<!-- This script got from frontendfreecode.com -->
<div class="radio_button"> <input type="checkbox" id="switch12"> <label class="switch_label" for="switch12"></label>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee
}
.radio_button input[type="checkbox"] {
    width: 0;
    height: 0;
    visibility: hidden
}
.radio_button .switch_label {
    width: 150px !important;
    height: 50px !important;
    background-color: #03256C !important;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s
}
.radio_button label::after {
    content: "";
    position: absolute;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    background-color: #2541B2;
    transition: all 1s
}
.radio_button input:checked+label:after {
    left: calc(100% - 48px)
}
.radio_button label:active::after {
    width: 80px
}
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css' rel='stylesheet'>
<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css' rel='stylesheet'>
<script type='text/javascript' src='https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js'></script>
<style>
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee
}
.radio_button input[type="checkbox"] {
    width: 0;
    height: 0;
    visibility: hidden
}
.radio_button .switch_label {
    width: 150px !important;
    height: 50px !important;
    background-color: #03256C !important;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s
}
.radio_button label::after {
    content: "";
    position: absolute;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    background-color: #2541B2;
    transition: all 1s
}
.radio_button input:checked+label:after {
    left: calc(100% - 48px)
}
.radio_button label:active::after {
    width: 80px
}
</style>

</head>
<body>
<div class="radio_button"> <input type="checkbox" id="switch12"> <label class="switch_label" for="switch12"></label>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview