1div.codeclipboard_button { 2 float: right; 3 width: 30px; 4 height: 30px; 5 position: relative; 6 z-index: 9999; 7 margin: -10px -10px; 8 background: url('img/icon.png'); 9 background-size: cover; 10 opacity: .8; 11 transition: rotate .2s; 12} 13 14div.codeclipboard_button:hover { 15 cursor: pointer; 16 opacity: 1; 17} 18 19div.codeclipboard_button:active { 20 transform: rotate(30deg); 21} 22