Jump to content
Search Community

FlawlessDog last won the day on March 29 2017

FlawlessDog had the most liked content!

FlawlessDog

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by FlawlessDog

  1. Nice work! I noticed a couple improvements you could make. 

     

    Don't a create a new animation for your hover events. Create the animation once, and toggle the playback direction in the handlers.

     

    You're timeline is calling updateCube on every frame, recalculating the screen size and creating a new tween around 60 times a second. That would be fine if the screen size was actually changing on every frame, but it isn't, so you're making the browser do a lot of unnecessary calculations and object creation. You should only call your update function when the screen resizes. Even better, throttle the resize calls to an animation frame request.

     

    See the Pen OpreVy?editors=0010 by osublake (@osublake) on CodePen

     

    .

    This is great!! Thank you vEry much.

    This answers a lot of the questions I had been forming whilst working on these two little diddies.

    Is a bit more flash-like than I had thought.

    Got a few domestic errands to run today, but will be checking this out when I get back. 

    Thanks again. 

    See'ya next post

    • Like 1
  2. Thanks Dipscom. I feel pretty good about it, as that was me first pen.

    I think I'd rather have the real job...lol...

    Been spending my time trying to get back up to speed, thus these new exercises.

    Took some personal time over the past couple years and now re-learning a few things and learning a few new things.

    It's fun and I'm finding out how much I missed doing this kind of work.

×
×
  • Create New...