# Scroll up animation

**URL:** <https://forums.fusetools.com/t/scroll-up-animation/1344>\
**Category:** How-to Discussions\
**Created:** [October 18, 2017, 3:54pm UTC](https://forums.fusetools.com/t/scroll-up-animation/1344 "2017-10-18T15:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Denise](https://forums.fusetools.com/u/Denise)\
**Post date:** [October 18, 2017, 3:54pm UTC](https://forums.fusetools.com/t/scroll-up-animation/1344/1 "2017-10-18T15:54:22Z")

</div>

Hi,  
i used the ScrollAnimation Class to obtain the animation in the video.  
This is the code:

```auto
<DockPanel>
		<BottomBarBackground Dock="Bottom" />
		<Circle Color="#000" Height="100" Width="100" ux:Name="test" Alignment="BottomRight" Margin="20"/>
		<ScrollView>
			<StackPanel>
				<Each Count="10">
				<Rectangle Color="#0004" Width="100%" Height="100" Margin="0,20"/>
				</Each>
			</StackPanel>

			<ScrollingAnimation From="0" To="50">	
				<Scale Target="test" Factor="0" Easing="QuadraticInOut" Duration="1"/>
			</ScrollingAnimation>
		</ScrollView>
	</DockPanel>

```

I wanted to have the circle back as soon as i scroll up again. At the moment it appears when i get back to the position “50”.

- [Attached MP4 file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/55e2QARVtqp4-image-1508341966144.mp4)

I’ve just edited the post with a complete example.

---

<div class="post-metadata">

**Author:** ![toto007](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@toto007](https://forums.fusetools.com/u/toto007)\
**Post date:** [October 19, 2017, 8:08am UTC](https://forums.fusetools.com/t/scroll-up-animation/1344/2 "2017-10-19T08:08:38Z")

</div>

You can take a cue from this example where the header disappears and reappears when you scroll according to the direction of scrolling.

> <https://github.com/fusetools/fuse-samples/blob/master/Samples/Controls/ScrollViewSwipe/MainView.ux>

However, the example in this repository is quite complex in my opinion and the components used are poorly documented.
