Giter Site home page Giter Site logo

elm-animation-examples's Introduction

elm-animation-examples

This repo contains examples of HTML animations using Elm 0.18 and the mdgriffith/elm-style-animation package.

Basic Animation Framework

The BasicFramework.elm module demonstrates a basic extension of the standard Elm Architecture to layer multiple effects upon the same element.

Swapping Views

The SwapView.elm module starts from the Basic Animation Framework and uses it to animate swapping visibility between two different view elements.

Listening to Completed Animations

The FinishAnimation.elm module extends the SwapView example to add the capability to send notifications at the end of an animation.

Modularize!

The Modules.elm example takes what's been done in the previous parts and splits the functionality across different modules:

  • Modules.elm: The main entry point/custom app example.
  • Animation/Architecture.elm: The foundational, reusable pieces of the architecture.
  • AppAnimations.elm: The custom animations for the app (that would be reused across different view components).
  • Update/Extra.elm: The small extension functions for use with the update function, refactored. These may be bundled as a separate package in the future.

While Modules.elm is a complete example, some of its parts provide a similar-but-incomplete basis as the basic Elm Architecture. MinimalModules.elm provides a "minimal" version of the modularized code to use as a starting template for future work.

elm-animation-examples's People

Contributors

stormont avatar

Stargazers

 avatar  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.