Code Monkey home page Code Monkey logo

implicitanimationtesting's Introduction

ImplicitAnimationTesting

A sample project showing some moderately complex Composition Animations. These are straight to the platform API, and not using the Community Toolkit Wrapper, so are relatively low level and verbose.

Why a sample project?

At the time of this project was authored, there was very little documentation or samples for composition animations. Even more rare were animations that helped perform page transitions. At the time composition animations were introduced, connected animations were also delivered they didn’t support complex connected animations only a BasicConnectedAnimationConfiguration, which didn’t allow for control or coordination with other animations.

At the time my $job was looking to employ these technologies, so I spent some time creating an approximation.

Why share it?

It was a learning experience, and in my (light) research, still seems like it might be useful to someone since the community toolkit hides some of the details. The XAML Gallery example is dependent on using the build in connected animations – which now get close to the desired effect – but if you need something more complex, this may help in that understanding.

Running

You need:

  • Visual Studio 2019 or higher
  • Windows 10 2004, 19041 or higher
  • Animations turned on in Windows Settings

Open it, and go!

Contents

There is a left navigation containing 3 pages — two collection pages, and a test page. Additionally navigation from the collection page (clicking on a tile) will navigate to a product details page.

Animations

  • Collection-to-Collection translates up/down (Depending on the direction), as well as a staggered animation of the header
  • Collection-to-Product Page will animate the image of the tile to top-left from it’s originating position, and also scale up a backdrop behind the the header while performing a clip
example-animation.mp4

Notes

  • Holding Control when causing an animation to start will slow the animation down 10x. The default length is 0.5s, so will be extended to 5s
  • To ensure that the page transitions play it is required that you pass a new SuppressNavigationTransiationInfo() to the Frame.Navigate method. Without this, animations will stall/run for the wrong duration/just won’t work

implicitanimationtesting's People

Contributors

grork avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.