#codevember 1 - checkcircle
How do I make an #codevember 1 - checkcircle?
Simple checkbox with css transition for it's states. (Aprovado por Gustavão, do aquário...). What is a #codevember 1 - checkcircle? How do you make a #codevember 1 - checkcircle? This script and codes were developed by Rafael Abensur on 12 September 2022, Monday.
#codevember 1 - checkcircle - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>#codevember 1 - checkcircle </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>checkcircle</h1>
<div class="container"> <label class="checkbox checkbox--unchecked" for="inputID" id="checkbox"> <span class="checkbox__inner"> <input class="checkbox__input" type="checkbox" id="inputID" /> </span> </label>
</div> <script src="js/index.js"></script>
</body>
</html>
#codevember 1 - checkcircle - Script Codes CSS Codes
body, html { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 12px; line-height: 1.44; text-rendering: optimizeLegibility; height: 100%; width: 100%; box-sizing: border-box;
}
body *, body *::before, body *::after, html *, html *::before, html *::after { box-sizing: inherit;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; -ms-flex-line-pack: center; align-content: center;
}
h1 { text-align: center; font-weight: 300; -webkit-box-flex: 0; -ms-flex: 0 100%; flex: 0 100%; letter-spacing: 1px; margin-bottom: 16px;
}
.container { width: 100%; height: 48px; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap;
}
.checkbox { margin: auto; height: 49px; width: 49px; border-radius: 100%; border: 1px solid #FF9100; box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.05); cursor: pointer; background: #FF9100; -webkit-transition: background 0.25s ease; transition: background 0.25s ease;
}
.checkbox--checked { background: #fff; border: 1px solid #E5E5E5;
}
.checkbox--checked .checkbox__inner::before,
.checkbox--checked .checkbox__inner::after { background: #99BF4C; -webkit-transition: all 0.2s ease; transition: all 0.2s ease;
}
.checkbox--checked .checkbox__inner::before { -webkit-transform: rotate(47deg); transform: rotate(47deg); width: 10px; top: 26px; left: 13px;
}
.checkbox--checked .checkbox__inner::after { -webkit-transform: rotate(45deg); transform: rotate(45deg); left: 27px;
}
.checkbox--checked:hover .checkbox__inner::before,
.checkbox--checked:hover .checkbox__inner::after { background: #FF0000;
}
.checkbox--checked:hover .checkbox__inner::before { -webkit-transform: rotate(45deg); transform: rotate(45deg); width: 19px; top: 23px; left: 14px;
}
.checkbox--checked:hover .checkbox__inner::after { height: 19px; top: 14px; left: 23px;
}
.checkbox--unchecked:hover { background: #FF9E2C;
}
.checkbox__inner { position: relative;
}
.checkbox__inner::before, .checkbox__inner::after { position: absolute; content: ''; background: #fff; -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.checkbox__inner::before { height: 1px; width: 19px; top: 23px; left: 14px;
}
.checkbox__inner::after { width: 1px; height: 19px; top: 14px; left: 23px;
}
.checkbox__input { -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
#codevember 1 - checkcircle - Script Codes JS Codes
'use strict';
var checkbox = document.querySelector('#checkbox'), checkboxInput = checkbox.querySelector('#inputID');
checkboxInput.addEventListener('change', function (e) { checkbox.classList.toggle('checkbox--unchecked', !e.target.checked); checkbox.classList.toggle('checkbox--checked', e.target.checked);
});
Developer | Rafael Abensur |
Username | abensur |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 3,963 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Pocker Mortys dataviz | 13,940 Kb |
Food Seasons | 6,522 Kb |
Responsive SVG thermometer | 3,711 Kb |
D3.js with CSS sprites | 9,304 Kb |
A Pen by Rafael Abensur | 5,301 Kb |
New Pen Template | 1,233 Kb |
Chart tooltip example | 2,757 Kb |
Algorithm practice | 5,620 Kb |
Amadurou Logo Animation | 3,208 Kb |
Roundout Ribbon | 2,907 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
Fixed with using Calc | Tomleo | 2,542 Kb |
CSS background-size - GSAP | Jonathan | 2,209 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
Apex Calculator | Michaelwnelson | 2,370 Kb |
Knob rotation | Alemesre | 2,122 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!