# Scroll Position Actions

**URL:** <https://forums.fusetools.com/t/scroll-position-actions/4815>\
**Category:** How-to Discussions\
**Created:** [November 12, 2017, 9:54pm UTC](https://forums.fusetools.com/t/scroll-position-actions/4815 "2017-11-12T21:54:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![znoopykid](https://avatars.discourse-cdn.com/v4/letter/z/dbc845/32.png) [@znoopykid](https://forums.fusetools.com/u/znoopykid)\
**Post date:** [November 12, 2017, 9:54pm UTC](https://forums.fusetools.com/t/scroll-position-actions/4815/1 "2017-11-12T21:54:25Z")

</div>

Trying to figure out how to make actions based on scroll position. In below example shrink the scrollview based on scroll position while within -10 from Start.

```auto
<ScrollView ux:Name="Scroll">
<WhileScrolled To="Start" Within="-10">
<Scale Target="Scroll" X="0.95" />
</WhileScrolled>

```

But I want the Scale X to be based on scroll position. Eg, when scrolled 1 X=0.99, when scrolled 2 X=0.98 (within the -10 from start) etc. What is the proper way of picking up scroll position and apply it to the Scale factor in a case like this? Thx

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [November 13, 2017, 9:31am UTC](https://forums.fusetools.com/t/scroll-position-actions/4815/2 "2017-11-13T09:31:12Z")

</div>

I must confess I don’t really understand the question (or the use case), but I think you’re after something like this instead:

```auto
<App>
    <ScrollView ux:Name="scroll" Background="#18f">
        <ScrollingAnimation From="0" To="-100">
            <Scale Target="scroll" X="0.5" />
        </ScrollingAnimation>
    </ScrollView>
</App>

```

---

<div class="post-metadata">

**Author:** ![znoopykid](https://avatars.discourse-cdn.com/v4/letter/z/dbc845/32.png) [@znoopykid](https://forums.fusetools.com/u/znoopykid)\
**Post date:** [November 14, 2017, 8:38pm UTC](https://forums.fusetools.com/t/scroll-position-actions/4815/3 "2017-11-14T20:38:06Z")

</div>

Thx! Exactly what I was looking for.

Sorry for my crap/short explanation, the use case is to shrink the scrollview when scrolling out of bounds (prior to closing it). Goldstar for understanding and delivering.
