Afficher / masquer un font awesome
Bonjour,
J'ai un font-awesome qui apparaît/disparaît via javascript sur un axe horizontal, mais voilà : ci-je mets un , celui-ci n'apparaît plus.
Voici mes CSS :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| html
{
height: 100%;
margin-top: 0px;
margin-left: 0px;
padding-right: 0px;
overflow-x: visible;
overflow-y: hidden;
}
#scrollUp {
position: fixed;
bottom : 10px;
right: -100px;
opacity: 1;
z-index:;-index: 99;} |
Mon HTML :
Code:
1 2 3 4
| <div class="container">
<div id="scrollUp">
<a href="#slider"><i class="fa fa-arrow-circle-up fa-2x"></i></a>
</div> |
et mon jquery :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| jQuery(function(){
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 200 ) {
$('#scrollUp').css('right','10px');
} else {
$('#scrollUp').removeAttr( 'style' );
}
});
});
}); |
Est-il possible d'afficher/masquer "scrollUp" sans déplacement ?
Merci et bonne journée,
ED