thank you for both answer.
I used it like that (before seeing PointC's interesting code):
var javaAnim = new TimelineMax({paused: true});
javaAnim
.to("#JavaSpell", 1, {rotation:360, ease:Linear.easeNone})
.to("#JavaSpell", 0.5, {rotation:1080, ease:Linear.easeNone})
.to("#JavaSpell", 1, {rotation:1800, ease:Elastic.easeOut});
$('#JavaSpell').on('click', function(){
javaAnim.play(0);
});
I don't know if that's really what I had in head; I espected the end to be a bit more elastic but I love it ?
I will continue to try to improve it.
Do you know if there is a easy way to rewind something with GSAP or should I write the reverse code by hand ?
I will search for the answer