css transitions for animating elements in magazine.js