Code:
/* The shine overlay */
.icon .shine {
opacity: 0;
width: 64px;
height: 64px;
position: absolute;
top: -45px; left: -63px;
background: rgba(255, 255, 255, 0.2);
background: -moz-linear-gradient(
left,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.2) 75%,
rgba(255, 255, 255, 0.8) 90%,
rgba(255, 255, 255, 0.0) 100%
);
background: -webkit-linear-gradient(
top,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.2) 75%,
rgba(255, 255, 255, 0.8) 90%,
rgba(255, 255, 255, 0.0) 100%
);
background: -webkit-gradient(
linear, left top, right top,
color-stop(0% ,rgba(255, 255, 255, 0.2)),
color-stop(75% ,rgba(255, 255, 255, 0.2)),
color-stop(90% ,rgba(255, 255, 255, 0.8)),
color-stop(100%,rgba(255, 255, 255, 0.0))
);
background: -o-linear-gradient(
top,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.2) 75%,
rgba(255, 255, 255, 0.8) 90%,
rgba(255, 255, 255, 0.0) 100%
);
background: -ms-linear-gradient(
top,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.2) 75%,
rgba(255, 255, 255, 0.8) 90%,
rgba(255, 255, 255, 0.0) 100%
);
background: linear-gradient(
top,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.2) 75%,
rgba(255, 255, 255, 0.8) 90%,
rgba(255, 255, 255, 0.0) 100%
);
-webkit-transition-property: left, top, opacity;
-moz-transition-property: left, top, opacity;
-ms-transition-property: left, top, opacity;
-o-transition-property: left, top, opacity;
transition-property: left, top, opacity;
-webkit-transition-duration: 0.5s, 0.5s, 0.1s;
-moz-transition-duration: 0.5s, 0.5s, 0.1s;
-ms-transition-duration: 0.5s, 0.5s, 0.1s;
-o-transition-duration: 0.5s, 0.5s, 0.1s;
transition-duration: 0.5s, 0.5s, 0.1s;
-webkit-transition-timing-function: ease;
-moz-transition-timing-function: ease;
-ms-transition-timing-function: ease;
-o-transition-timing-function: ease;
transition-timing-function: ease;
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-ms-transform: rotate(30deg);
-o-transform: rotate(30deg);
transform: rotate(30deg);
}
In this code below, why is top and left now at -12 and -10 respectively?
Bookmarks