I'm trying to make a button on my website that is sticky, by clicking this button, it collapses right and shows a container with a certain number of colors available for the user to choose, the user choosing the color pallette , the site will change the color of the layout to the pallette chosen by the user ...
My code so far ...
HTML:
<!---- color changer ---->
<div class="color-chg">
<a href="#" class="color-btn"><i class="ion-ios-settings-strong"></i></a>
</div>
CSS:
.color-chg {
position: fixed;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
z-index: 2000;
}
/* Stylyng the icon */
.color-chg a {
display: block;
text-align: center;
padding: 30px;
transition: all 0.3s ease;
color: white;
font-size: 100%;
}
.color-chg a:hover {
background-color: white;
color: #74c8d2;
border: 2px solid #74c8d2;
}
.color-btn {
border: 2px solid transparent;
background: #74c8d2;
color: white;
}
What I want:
Please give me some tips, I have no idea how to do this, I researched, but I can not find anything on the internet, I was checking the source code of this site, but it does not help much ...
Thank you guys!