Well, first of all I apologize, but this question is a bit difficult to express myself.
What I want to know is if there is any code in javascript that makes the background-position move very fast, very slowly, and then stops. In other words, we assume that the animation takes 10 seconds. Initially it moves very fast and slows down until it reaches 0 second and stops definitively.
I do not know if I express myself very well, but I intend to do this with javascript or jquery.
My Code:
<html>
<head>
<style>
body,html,div {
margin:0;
padding:0;
width:100%;
height:100%;
position:relative;
}
#anim {
background:url('https://www.gravatar.com/avatar/7a2c254d9e863db31614b95e909a9633?s=800&d=identicon') no-repeat 0 0;
background-size:180% 180%;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js">
</head>
<body>
<script type="text/javascript">
$('#anim').animate({'background-position-x': '100%'},8000,'easeOutCubic');
</script>
<div id="anim">
</div>
</body>
</html>
The movement would be the image from left to right.
I do not want to use the css animate, but rather just use javascript.
Thank you.