added transitions and wrapped in modernizr