Thumbs up toggle

Developer
Size
2,516 Kb
Views
4,048

How do I make an thumbs up toggle?

What is a thumbs up toggle? How do you make a thumbs up toggle? This script and codes were developed by Paul Sullivan on 26 January 2023, Thursday.

Thumbs up toggle Previews

Thumbs up toggle - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Thumbs up toggle</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='center-me'> <input id='option' type='checkbox'> <label for='option'> <i class='fa fa-thumbs-up'></i> </label>
</div>
</body>
</html>

Thumbs up toggle - Script Codes CSS Codes

html, body { height: 100%; width: 100%; background-color: #eee;
}
.center-me { position: absolute; margin: auto; height: 1px; width: 1px; left: 0; right: 0; top: 0; bottom: 0;
}
input { display: none;
}
input:checked ~ label .fa { left: 45%; color: #C2362D; -webkit-transform: translateX(100%) rotate(540deg); transform: translateX(100%) rotate(540deg);
}
label { -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); border: 5px solid #ccc; border-radius: 45px; width: 200px; height: 75px; cursor: pointer; background-color: #fff; font-size: 3em; padding-top: 10px;
}
label .fa { color: #57C269; -webkit-transition: all .25s ease-in-out; transition: all .25s ease-in-out; display: block; position: absolute; left: 15px;
}
Thumbs up toggle - Script Codes
Thumbs up toggle - Script Codes
Home Page Home
Developer Paul Sullivan
Username pwsm50
Uploaded January 26, 2023
Rating 4
Size 2,516 Kb
Views 4,048
Do you need developer help for Thumbs up toggle?

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!

Paul Sullivan (pwsm50) Script Codes
Create amazing SEO content with AI!

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!