• Justin Domingue's avatar
    Fix NFT SVG performance issue in browser (#1509) · 251d7c0b
    Justin Domingue authored
    * only animate NFT SVG on hover by using a canvas
    
    * handle high dpis
    
    * animation transition between canvas and img
    
    * set start state to not animated
    
    * removed animations that were causing issues on Firefox
    
    * simplify code
    
    * remove debugger statement
    
    * remove useEffect in favor of an event handler
    
    * hide canvas without unmounting to avoid blinking
    
    * fix lint error
    
    * fix flicker on hover by leaving canvas always visible
    
    * add comment about z-index
    Co-authored-by: default avatarJustin Domingue <domingue.justin@gmail.com>
    251d7c0b
PositionPage.tsx 26.7 KB