Jump to content

Stacked Image Effect: Portfolio Hover

Recommended Posts

Does anyone know for the theme Hawley, using the Hover: Follow Cursor effect for the portfolio titles to create an effect similar to this fiddle? I'm not sure which class ID's to use and where to insert the javascript code. Thank you in advance!

Link to comment
  • 4 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Try adding to Code Injection Header

<style>
  .logo{
    position: absolute;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  $(document).mousemove(function(e) {
    var logo ='<img class="logo" src="http://res2.windows.microsoft.com/resbox/fr/6.2/2012-Win8GA/0bcd7119-71c3-45e5-a778-af78f355f459_4.jpg" alt="Google">';
    
    $("body").append(
        $(logo).clone().offset({
            left: e.pageX,
            top: e.pageY + 20
        })
    );
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.