WHen ever I try and create a transition, the styles fade in to the elements, not just when hovered(an example). I really don’t know what the issue is, and don’t know where to start looking to fix this.
Example:
input[type='text'] {
transition:.15s all;
-webkit-transition:.15s all;
-moz-transition:.15s all;
border: 1px solid #DEDEDE;
border-radius: 5px;
color: #545454;
font-size: 15px;
padding: 4px;
margin-bottom: 6px;
}
The size, expands when I load the page, along with the border. Any ideas on what the issue is?
The problem here is, that you set the transition as default.
If you do it like this:
It will only active the transition if you hover the input.