skip to Main Content

Moving text on wave path with jQuery and stop on hover

<svg width="100%" height="160px" viewBox="0 0 1098.72 89.55"> <path id="curve" fill="transparent" d="M0.17,0.23c0,0,105.85,77.7,276.46,73.2s243.8-61.37,408.77-54.05c172.09,7.64,213.4,92.34,413.28,64.19"></path> <text width="100%"> <textPath xlink:href="#curve">*The pictures are not technically selfies.</textPath> </text> </svg> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> $(document).ready(function() { const textPath = document.querySelector("textPath"); const textPathLength = textPath.getComputedTextLength(); const duration = 10000; //…

VIEW QUESTION

Jquery – How to flip an image without moving it

In the example below, click on logo and you'll see - it is flipped but also moved How to flip it without moving ? I also tried this, without success: .flip{transform:scaleX(-1) translatex(-50%);} $('img').on('click', function(){ $(this).addClass('flip'); }); .flip{transform:scaleX(-1);} .wrap{ position:relative; width:50%;…

VIEW QUESTION
Back To Top
Search