# Hover text compress effect

**URL:** <https://forum.readymag.com/t/hover-text-compress-effect/622>\
**Category:** Uncategorized\
**Created:** [August 31, 2022, 12:14am UTC](https://forum.readymag.com/t/hover-text-compress-effect/622 "2022-08-31T00:14:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jess\_MacDonald](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/jess_macdonald/32/384_2.png) [@Jess\_MacDonald](https://forum.readymag.com/u/Jess_MacDonald)\
**Post date:** [August 31, 2022, 12:14am UTC](https://forum.readymag.com/t/hover-text-compress-effect/622/1 "2022-08-31T00:14:24Z")

</div>

Hi there,

I came across this text animation that compresses txt left and right on hover. Does anyone know if it can be recreated in Readymag?

[https://poodlefitzroy.com.au/](https://poodlefitzroy.com.au/)

 ![screencapture-poodlefitzroy-au-2022-08-31-10_13_22](https://us1.discourse-cdn.com/flex015/uploads/readymag/original/1X/de2a6cdd9f77039cd82dff667365e1ec513f85cd.png)

Thanks,

Jess

---

<div class="post-metadata">

**Author:** ![HEADLESS.HORSE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/headless.horse/32/144_2.png) [@HEADLESS.HORSE](https://forum.readymag.com/u/HEADLESS.HORSE)\
**Post date:** [September 1, 2022, 10:13am UTC](https://forum.readymag.com/t/hover-text-compress-effect/622/2 "2022-09-01T10:13:09Z")

</div>

Hi Jess, I located the Jquery script on their website. I hope this helps!

```auto

<section class="custom_container">
		<div class="containerdownstairs">
		  <img src="poodle_home_down.png" class="down" style="width: 528px;">
		<img src="poodle_home_stair.png" class="stairs1" style="width: 1052px;">
		  </div>
		  <div class="containerupstairs">
		    <img src="poodle_home_up.png" class="up" style="width: 839px;">
		<img src="poodle_home_stair.png" class="stairs2" style="width: 741px;">
		  </div>
	</section>

$('.containerdownstairs').on("mousemove", function(event) {
  
  $("img.down").css("width", event.pageX)
  $("img.stairs1").css("width", $('.custom_container').width() - event.pageX)

})

$('.containerdownstairs').on("touchmove", function(event) {
  
  $("img.down").css("width", event.touches[0].pageX)
  $("img.stairs1").css("width", $('.custom_container').width() - event.touches[0].pageX)
  
})

$('.containerupstairs').on("mousemove", function(event) {
  
  $("img.up").css("width", event.pageX)
  $("img.stairs2").css("width", $('.custom_container').width() - event.pageX)

  
})

$('.containerupstairs').on("touchmove", function(event) {
  
  $("img.up").css("width", event.touches[0].pageX)
  $("img.stairs2").css("width", $('.custom_container').width() - event.touches[0].pageX)

  
})

```
