"Untitled"
Bootstrap 4.1.1 Snippet by vivekbisht109

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="section over-hide z-bigger"> <input class="checkbox" type="checkbox" name="general" id="general"> <label class="for-checkbox" for="general"></label> <div class="background-color"></div> <div class="section over-hide z-bigger"> <div class="container pb-5"> <div class="row justify-content-center pb-5"> <div class="col-12 pt-5"> <p class="mb-4 pb-2">Design Tools</p> </div> <div class="col-12 pb-5"> <input class="checkbox-tools" type="radio" name="tools" id="tool-1" checked> <label class="for-checkbox-tools" for="tool-1"> <i class='uil uil-line-alt'></i> line </label><!-- --><input class="checkbox-tools" type="radio" name="tools" id="tool-2"> <label class="for-checkbox-tools" for="tool-2"> <i class='uil uil-vector-square'></i> square </label><!-- --><input class="checkbox-tools" type="radio" name="tools" id="tool-3"> <label class="for-checkbox-tools" for="tool-3"> <i class='uil uil-ruler'></i> ruler </label><!-- --><input class="checkbox-tools" type="radio" name="tools" id="tool-4"> <label class="for-checkbox-tools" for="tool-4"> <i class='uil uil-crop-alt'></i> crop </label><!-- --><input class="checkbox-tools" type="radio" name="tools" id="tool-5"> <label class="for-checkbox-tools" for="tool-5"> <i class='uil uil-brush-alt'></i> brush </label><!-- --><input class="checkbox-tools" type="radio" name="tools" id="tool-6"> <label class="for-checkbox-tools" for="tool-6"> <i class='uil uil-image-resize-landscape'></i> resize </label> </div> <div class="col-12 pt-1"> <p class="mb-4 pb-2">Client Budget</p> </div> <div class="col-xl-10 pb-5"> <input class="checkbox-budget" type="radio" name="budget" id="budget-1" checked> <label class="for-checkbox-budget" for="budget-1"> <span data-hover="500$">500$</span> </label><!-- --><input class="checkbox-budget" type="radio" name="budget" id="budget-2"> <label class="for-checkbox-budget" for="budget-2"> <span data-hover="1000$">1000$</span> </label><!-- --><input class="checkbox-budget" type="radio" name="budget" id="budget-3"> <label class="for-checkbox-budget" for="budget-3"> <span data-hover="1500$">1500$</span> </label><!-- --><input class="checkbox-budget" type="radio" name="budget" id="budget-4"> <label class="for-checkbox-budget" for="budget-4"> <span data-hover="2000$">2000$</span> </label><!-- --><input class="checkbox-budget" type="radio" name="budget" id="budget-5"> <label class="for-checkbox-budget" for="budget-5"> <span data-hover="2500$">2500$</span> </label><!-- --><input class="checkbox-budget" type="radio" name="budget" id="budget-6"> <label class="for-checkbox-budget" for="budget-6"> <span data-hover="5000$">5000$</span> </label> </div> <div class="col-12 pt-1"> <p class="mb-4 pb-2">Booking Options</p> </div> <div class="col-12 pb-5"> <input class="checkbox-booking" type="checkbox" name="booking" id="booking-1"> <label class="for-checkbox-booking" for="booking-1"> <i class='uil uil-coffee mr-3'></i><span class="text">breakfast</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-2"> <label class="for-checkbox-booking" for="booking-2"> <i class='uil uil-restaurant mr-3'></i><span class="text">dinner</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-3"> <label class="for-checkbox-booking" for="booking-3"> <i class='uil uil-car-sideview mr-3'></i><span class="text">pick up</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-4"> <label class="for-checkbox-booking" for="booking-4"> <i class='uil uil-flower mr-3'></i><span class="text">garden</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-5"> <label class="for-checkbox-booking" for="booking-5"> <i class='uil uil-wifi mr-3'></i><span class="text">internet</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-6"> <label class="for-checkbox-booking" for="booking-6"> <i class='uil uil-parking-square mr-3'></i><span class="text">parking</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-7"> <label class="for-checkbox-booking" for="booking-7"> <i class='uil uil-tv-retro mr-3'></i><span class="text">television</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-8"> <label class="for-checkbox-booking" for="booking-8"> <i class='uil uil-books mr-3'></i><span class="text">books</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-9"> <label class="for-checkbox-booking" for="booking-9"> <i class='uil uil-kayak mr-3'></i><span class="text">kayak</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-10"> <label class="for-checkbox-booking" for="booking-10"> <i class='uil uil-glass-martini-alt mr-3'></i><span class="text">drink</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-11"> <label class="for-checkbox-booking" for="booking-11"> <i class='uil uil-dumbbell mr-3'></i><span class="text">gym</span> </label><!-- --><input class="checkbox-booking" type="checkbox" name="booking" id="booking-12"> <label class="for-checkbox-booking" for="booking-12"> <i class='uil uil-sign-alt mr-3'></i><span class="text">walking tours</span> </label> </div> </div> </div> </div> </div> <!-- Link to page ================================================== --> <a href="https://front.codes" class="link-to-page" target="_blank"><img src="https://assets.codepen.io/1462889/fcy.png" alt=""></a>
/* Please ❤ this if you like it! */ @import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=devanagari,latin-ext'); :root { --white: #ffffff; --light: #f0eff3; --black: #000000; --dark-blue: #1f2029; --dark-light: #353746; --red: #da2c4d; --yellow: #f8ab37; --grey: #ecedf3; } /* #Primary ================================================== */ body{ width: 100%; background: var(--dark-blue); overflow-x: hidden; font-family: 'Poppins', sans-serif; font-size: 17px; line-height: 30px; -webkit-transition: all 300ms linear; transition: all 300ms linear; } p{ font-family: 'Poppins', sans-serif; font-size: 17px; line-height: 30px; color: var(--white); letter-spacing: 1px; font-weight: 500; -webkit-transition: all 300ms linear; transition: all 300ms linear; } ::selection { color: var(--white); background-color: var(--black); } ::-moz-selection { color: var(--white); background-color: var(--black); } mark{ color: var(--white); background-color: var(--black); } .section { position: relative; width: 100%; display: block; text-align: center; margin: 0 auto; } .over-hide { overflow: hidden; } .z-bigger { z-index: 100 !important; } .background-color{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-blue); z-index: 1; -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox:checked ~ .background-color{ background-color: var(--white); } [type="checkbox"]:checked, [type="checkbox"]:not(:checked), [type="radio"]:checked, [type="radio"]:not(:checked){ position: absolute; left: -9999px; width: 0; height: 0; visibility: hidden; } .checkbox:checked + label, .checkbox:not(:checked) + label{ position: relative; width: 70px; display: inline-block; padding: 0; margin: 0 auto; text-align: center; margin: 17px 0; margin-top: 100px; height: 6px; border-radius: 4px; background-image: linear-gradient(298deg, var(--red), var(--yellow)); z-index: 100 !important; } .checkbox:checked + label:before, .checkbox:not(:checked) + label:before { position: absolute; font-family: 'unicons'; cursor: pointer; top: -17px; z-index: 2; font-size: 20px; line-height: 40px; text-align: center; width: 40px; height: 40px; border-radius: 50%; -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox:not(:checked) + label:before { content: '\eac1'; left: 0; color: var(--grey); background-color: var(--dark-light); box-shadow: 0 4px 4px rgba(0,0,0,0.15), 0 0 0 1px rgba(26,53,71,0.07); } .checkbox:checked + label:before { content: '\eb8f'; left: 30px; color: var(--yellow); background-color: var(--dark-blue); box-shadow: 0 4px 4px rgba(26,53,71,0.25), 0 0 0 1px rgba(26,53,71,0.07); } .checkbox:checked ~ .section .container .row .col-12 p{ color: var(--dark-blue); } .checkbox-tools:checked + label, .checkbox-tools:not(:checked) + label{ position: relative; display: inline-block; padding: 20px; width: 110px; font-size: 14px; line-height: 20px; letter-spacing: 1px; margin: 0 auto; margin-left: 5px; margin-right: 5px; margin-bottom: 10px; text-align: center; border-radius: 4px; overflow: hidden; cursor: pointer; text-transform: uppercase; color: var(--white); -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox-tools:not(:checked) + label{ background-color: var(--dark-light); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); } .checkbox-tools:checked + label{ background-color: transparent; box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-tools:not(:checked) + label:hover{ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-tools:checked + label::before, .checkbox-tools:not(:checked) + label::before{ position: absolute; content: ''; top: 0; left: 0; width: 100%; height: 100%; border-radius: 4px; background-image: linear-gradient(298deg, var(--red), var(--yellow)); z-index: -1; } .checkbox-tools:checked + label .uil, .checkbox-tools:not(:checked) + label .uil{ font-size: 24px; line-height: 24px; display: block; padding-bottom: 10px; } .checkbox:checked ~ .section .container .row .col-12 .checkbox-tools:not(:checked) + label{ background-color: var(--light); color: var(--dark-blue); box-shadow: 0 1x 4px 0 rgba(0, 0, 0, 0.05); } .checkbox-budget:checked + label, .checkbox-budget:not(:checked) + label{ position: relative; display: inline-block; padding: 0; padding-top: 20px; padding-bottom: 20px; width: 260px; font-size: 52px; line-height: 52px; font-weight: 700; letter-spacing: 1px; margin: 0 auto; margin-left: 5px; margin-right: 5px; margin-bottom: 10px; text-align: center; border-radius: 4px; overflow: hidden; cursor: pointer; text-transform: uppercase; -webkit-transition: all 300ms linear; transition: all 300ms linear; -webkit-text-stroke: 1px var(--white); text-stroke: 1px var(--white); -webkit-text-fill-color: transparent; text-fill-color: transparent; color: transparent; } .checkbox-budget:not(:checked) + label{ background-color: var(--dark-light); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); } .checkbox-budget:checked + label{ background-color: transparent; box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-budget:not(:checked) + label:hover{ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-budget:checked + label::before, .checkbox-budget:not(:checked) + label::before{ position: absolute; content: ''; top: 0; left: 0; width: 100%; height: 100%; border-radius: 4px; background-image: linear-gradient(138deg, var(--red), var(--yellow)); z-index: -1; } .checkbox-budget:checked + label span, .checkbox-budget:not(:checked) + label span{ position: relative; display: block; } .checkbox-budget:checked + label span::before, .checkbox-budget:not(:checked) + label span::before{ position: absolute; content: attr(data-hover); top: 0; left: 0; width: 100%; overflow: hidden; -webkit-text-stroke: transparent; text-stroke: transparent; -webkit-text-fill-color: var(--white); text-fill-color: var(--white); color: var(--white); -webkit-transition: max-height 0.3s; -moz-transition: max-height 0.3s; transition: max-height 0.3s; } .checkbox-budget:not(:checked) + label span::before{ max-height: 0; } .checkbox-budget:checked + label span::before{ max-height: 100%; } .checkbox:checked ~ .section .container .row .col-xl-10 .checkbox-budget:not(:checked) + label{ background-color: var(--light); -webkit-text-stroke: 1px var(--dark-blue); text-stroke: 1px var(--dark-blue); box-shadow: 0 1x 4px 0 rgba(0, 0, 0, 0.05); } .checkbox-booking:checked + label, .checkbox-booking:not(:checked) + label{ position: relative; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; -webkit-align-items: center; -moz-align-items: center; -ms-align-items: center; align-items: center; -webkit-justify-content: center; -moz-justify-content: center; -ms-justify-content: center; justify-content: center; -ms-flex-pack: center; text-align: center; padding: 0; padding: 6px 25px; font-size: 14px; line-height: 30px; letter-spacing: 1px; margin: 0 auto; margin-left: 6px; margin-right: 6px; margin-bottom: 16px; text-align: center; border-radius: 4px; cursor: pointer; color: var(--white); text-transform: uppercase; background-color: var(--dark-light); -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox-booking:not(:checked) + label::before{ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); } .checkbox-booking:checked + label::before{ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-booking:not(:checked) + label:hover::before{ box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); } .checkbox-booking:checked + label::before, .checkbox-booking:not(:checked) + label::before{ position: absolute; content: ''; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border-radius: 4px; z-index: -2; background-image: linear-gradient(138deg, var(--red), var(--yellow)); -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox-booking:not(:checked) + label::before{ top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); } .checkbox-booking:checked + label::after, .checkbox-booking:not(:checked) + label::after{ position: absolute; content: ''; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border-radius: 4px; z-index: -2; background-color: var(--dark-light); -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox-booking:checked + label::after{ opacity: 0; } .checkbox-booking:checked + label .uil, .checkbox-booking:not(:checked) + label .uil{ font-size: 20px; } .checkbox-booking:checked + label .text, .checkbox-booking:not(:checked) + label .text{ position: relative; display: inline-block; -webkit-transition: opacity 300ms linear; transition: opacity 300ms linear; } .checkbox-booking:checked + label .text{ opacity: 0.6; } .checkbox-booking:checked + label .text::after, .checkbox-booking:not(:checked) + label .text::after{ position: absolute; content: ''; width: 0; left: 0; top: 50%; margin-top: -1px; height: 2px; background-image: linear-gradient(138deg, var(--red), var(--yellow)); z-index: 1; -webkit-transition: all 300ms linear; transition: all 300ms linear; } .checkbox-booking:not(:checked) + label .text::after{ width: 0; } .checkbox-booking:checked + label .text::after{ width: 100%; } .checkbox:checked ~ .section .container .row .col-12 .checkbox-booking:not(:checked) + label, .checkbox:checked ~ .section .container .row .col-12 .checkbox-booking:checked + label{ background-color: var(--light); color: var(--dark-blue); } .checkbox:checked ~ .section .container .row .col-12 .checkbox-booking:checked + label::after, .checkbox:checked ~ .section .container .row .col-12 .checkbox-booking:not(:checked) + label::after{ background-color: var(--light); } .link-to-page { position: fixed; top: 30px; right: 30px; z-index: 20000; cursor: pointer; width: 50px; } .link-to-page img{ width: 100%; height: auto; display: block; }

Related: See More


Questions / Comments: