|
@@ -127,11 +127,18 @@ jQuery(document).ready(function($){
|
|
|
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
|
|
|
}
|
|
|
$(window).scroll(function () {
|
|
|
- $('.souligne').each(function () {
|
|
|
+ $('.souligne.toleft').each(function () {
|
|
|
if (isScrolledIntoView(this) === true) {
|
|
|
$(this).addClass('in-view')
|
|
|
} else {
|
|
|
$(this).removeClass('in-view')
|
|
|
}
|
|
|
});
|
|
|
+ $('.souligne.toright').each(function () {
|
|
|
+ if (isScrolledIntoView(this) === true) {
|
|
|
+ $(this).addClass('in-view-right')
|
|
|
+ } else {
|
|
|
+ $(this).removeClass('in-view-right')
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|