$(window).scroll(function() {
// calculate the percentage the user has scrolled down the page
var scrollPercent = 300 * $(window).scrollTop() / ($(document).height() - $(window).height());
var scrollPercent2 = 400 * $(window).scrollTop() / ($(document).height() - $(window).height());
$('.animation-element').css('right', scrollPercent +"%");
$('.animation-element-2').css('right', scrollPercent2 +"%");
});