smarter logic with animated gif.