Created
February 13, 2014 05:55
-
-
Save bingeboy/8970478 to your computer and use it in GitHub Desktop.
backtotop tablet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("touchmove", ScrollStart, false); | |
document.addEventListener("scroll", Scroll, false); | |
document.addEventListener("touchcancel", Scroll, false); | |
function ScrollStart() { | |
//hide back to top button now if it exists | |
} | |
function Scroll() { | |
//show back to top button now if scroll far enough | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
}
@Keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Firefox */
@-moz-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Safari and Chrome */
@-webkit-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
/* Internet Explorer */
@-ms-keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}