feedback bar/button
hovering feedback button
by sqiudward
HTML
<div id="feedback-main">
<div id="feedback-div">
<form action="contact.php" method="post" class="form" id="feedback-form1" name="form1" enctype="multipart/form-data">
<p class="name">
<input name="name" type="name" class="validate[required,custom[onlyLetter],length[0,100]] feedback-input" required placeholder="Name" id="feedback-name" />
</p>
<p class="email">
<input name="email" type="email" class="validate[required,custom[email]] feedback-input" id="feedback-email" placeholder="Email" required />
</p>
<p class="text">
<textarea name="comment" type="comment" class="validate[required,length[6,300]] feedback-input" id="feedback-comment" required placeholder="Hey, I really love the site but I believe that you could incorporate some ..... and also get rid of the ...... on the section."></textarea>
</p>
<div class="feedback-submit">
<input type="submit" value="SEND" id="feedback-button-blue"/>
<div class="feedback-ease"></div>
</div>
</form>
</div>
</div>
<button id="popup" class="feedback-button" onclick="toggle_visibility()">Feedback</button>
CSS
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100);
html{background:#2F3238; }
.feedback-button {height:40px; border:solid 3px #CCCCCC; background:#333; width:100px; line-height:32px; -webkit-transform:rotate(-90deg); font-weight:600; color:white; transform:rotate(-90deg); -ms-transform:rotate(-90deg); -moz-transform:rotate(-90deg); text-align:center; font-size:17px; position:fixed; right:-40px; top:45%; font-family: "Roboto", helvetica, arial, sans-serif; z-index:999; }
#feedback-main{
display:none;
float:left;
padding-top:0px;
}
#feedback-div {
background-color:rgba(72,72,72,0.4);
padding-left:35px;
padding-right:35px;
padding-top:35px;
padding-bottom:50px;
width: 450px;
float: left;
left: 50%;
position: absolute;
margin-top:30px;
margin-left: -260px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}
.feedback-input {
color:#3c3c3c;
font-family: "Roboto", helvetica, arial, sans-serif;
font-weight:500;
font-size: 18px;
border-radius: 0;
line-height: 22px;
background-color: #fbfbfb;
padding: 13px 13px 13px 54px;
margin-bottom: 10px;
width:100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
border: 3px solid rgba(0,0,0,0);
}
.feedback-input:focus{
background: #fff;
box-shadow: 0;
border: 3px solid #3498db;
color: #3498db;
outline: none;
padding: 13px 13px 13px 54px;
}
/* Icons ---------------------------------- */
#feedback-name{
background-image: url(http://rexkirby.com/kirbyandson/images/name.svg);
background-size: 30px 30px;
background-position: 11px 8px;
background-repeat: no-repeat;
}
#feedback-name:focus{
background-image: url(http://rexkirby.com/kirbyandson/images/name.svg);
background-size: 30px 30px;
background-position: 8px 5px;
background-position: 11px 8px;
background-repeat: no-repeat;
}
#feedback-email{
background-image:...
JavaScript
function toggle_visibility() {
var e = document.getElementById('feedback-main');
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}