Animated Ubuntu Touch-styled checkboxes
How do I make an animated ubuntu touch-styled checkboxes?
Animated Ubuntu Touch-styled checkboxes http://www.youtube.com/watch?v=BZFcnxQlvZY&feature=player_detailpage#t=61s. What is a animated ubuntu touch-styled checkboxes? How do you make a animated ubuntu touch-styled checkboxes? This script and codes were developed by Eduard Mayer on 13 July 2022, Wednesday.
Animated Ubuntu Touch-styled checkboxes - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Ubuntu Touch-styled checkboxes</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!doctype html>
<html lang="en">
<head> <meta charset="UTF-8"> <title>Ubuntu Touch Checkbox Snippet</title> <meta author="Eduard Mayer">
</head>
<body> <h2>Ubuntu Touch Checkboxes</h2> <section class="pen check"> <span class="container"> <input type="checkbox" style="opacity:0" class="ubuntu-touch"> <label for="ubuntu-touch" class="state"></label> <label for="ubuntu-touch" class="switch"></label> </span> </section> <section class="credit"> <p>Code by <a href="http://twitter.com/vsxed" target="_blank" class="credit-link">Eduard Mayer</a></p> <a href="https://github.com/vsxed/ubuntu-touch-checkbox" target="_blank" class="credit-link button">Fork it on Github</a> </section>
</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animated Ubuntu Touch-styled checkboxes - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
body { padding: 3em 2em; font-family: 'Open Sans', Arial, sans-serif; font-size: 1em; margin: 0; padding: 0; line-height: 1; background: #333333;
}
h2 { text-align: center; color: #f0f0f0; font-weight: 400; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.165);
}
.pen { max-width: 400px ; width: 100%; margin: 50px auto 0; position: relative;
}
.credit { display: block; max-width: 400px; text-align: center; margin: 150px auto 0; padding: 0; font-size: 0.8em; color: #f0f0f0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}
.credit p a,
.credit a { color: white; text-decoration: none; font-weight: 700;
}
.credit p a:hover,
.credit a:hover,
.credit p a:active,
.credit a:active { text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); color: white;
}
.credit p a.button,
.credit a.button { padding: 6px 12px; margin-top: 10px; background: #1a1a1a; border-radius: 3px;
}
.credit p a.button:hover,
.credit a.button:hover { background: #4d4d4d;
}
.credit p:last-of-type { margin-bottom: 30px;
}
.check { text-align: center;
}
.container { width: 150px; height: 70px; -webkit-border-radius: 10px; border-radius: 10px; overflow: hidden; -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); display: block; position: relative; margin: 0 auto;
}
.state { width: 150px; height: 70px; left: 0; top: 0; position: absolute; background: #8a8787; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
}
.state:after { content: ''; background: url('http://vsxed.github.io/ubuntu-touch-checkbox/img/sprite.png') 0 0 no-repeat; position: absolute; bottom: 18px; left: 25px; width: 30px; height: 30px;
}
.state:before { content: ''; background: url('http://vsxed.github.io/ubuntu-touch-checkbox/img/sprite.png') -34px 0 no-repeat; position: absolute; bottom: 18px; right: 25px; width: 30px; height: 30px;
}
.switch { width: 150px; height: 70px; overflow: hidden; position: absolute; -webkit-appearance: none; -moz-appearance: none; left: 0; top: 0;
}
.switch:after { content: ''; display: block; width: 219px; -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; -webkit-transform: translateX(-69px); -moz-transform: translateX(-69px); transform: translateX(-69px); height: 73px; background: url('http://vsxed.github.io/ubuntu-touch-checkbox/img/sprite.png') 0 -31px no-repeat;
}
.ubuntu-touch { width: 150px; height: 70px; position: absolute; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; left: 0; top: 0; margin: 0; z-index: 2;
}
.ubuntu-touch:checked ~ .state { background: #cd5428;
}
.ubuntu-touch:checked ~ .switch:after { -webkit-transform: translateX(0); -moz-transform: translateX(0); transform: translateX(0); -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
}
Animated Ubuntu Touch-styled checkboxes - Script Codes JS Codes
/* Animated Ubuntu Touch-styled checkboxes * http://www.youtube.com/watch?v=BZFcnxQlvZY&feature=player_detailpage#t=61s * * Works best in any webkit browser * * Due to a bug in Firefox i had to change the regular input + label markup -> * https://bugzilla.mozilla.org/show_bug.cgi?id=649849 * * You can see another live demo here: * http://vsxed.github.io/ubuntu-touch-checkbox * * and see it on github (psd and less code included): * https://github.com/vsxed/ubuntu-touch-checkbox */
Developer | Eduard Mayer |
Username | codewunder |
Uploaded | July 13, 2022 |
Rating | 3 |
Size | 3,420 Kb |
Views | 40,480 |
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 |
A Pen by Eduard Mayer | 2,130 Kb |
Twitter Widget Rebound | 4,890 Kb |
Social Slides | 2,985 Kb |
Social Sharing Buttons | 2,711 Kb |
Infotype SVG Animation | 5,309 Kb |
Scrollable see-through headline | 3,171 Kb |
CSSOff 2013 Submission | 14,766 Kb |
Enlarge text with buttons and js, with limited max- and min sizes | 1,756 Kb |
VelocityJS, fade on scroll | 2,296 Kb |
A Pen by Eduard Mayer | 2,381 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 |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Tab Menus | Zephyr | 3,180 Kb |
Cant get enough icecream in pure css3 | Melawire | 4,322 Kb |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
SVG Animation | Pollardld | 3,133 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 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!