All Projects → brianegan → gradient_animations

brianegan / gradient_animations

Licence: other
An example of how to animate gradients in flutter

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to gradient animations

Postcss Easing Gradients
PostCSS plugin to create smooth linear-gradients that approximate easing functions.
Stars: ✭ 689 (+1011.29%)
Mutual labels:  gradients
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+17325.81%)
Mutual labels:  gradients
Gradient Inspector
Chrome extension that provides a friendly way to inspect gradients of an element.
Stars: ✭ 161 (+159.68%)
Mutual labels:  gradients
Ariana
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
Stars: ✭ 74 (+19.35%)
Mutual labels:  gradients
Gradient Screens
🌈 Gradients applied to buttons, texts and backgrounds in Flutter
Stars: ✭ 97 (+56.45%)
Mutual labels:  gradients
Finitediff.jl
Fast non-allocating calculations of gradients, Jacobians, and Hessians with sparsity support
Stars: ✭ 123 (+98.39%)
Mutual labels:  gradients
Skeleton
💀 An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
Stars: ✭ 587 (+846.77%)
Mutual labels:  gradients
Magicgradients
Draw breathtaking backgrounds in your Xamarin.Forms application. It's a kind of magic.
Stars: ✭ 236 (+280.65%)
Mutual labels:  gradients
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (+83.87%)
Mutual labels:  gradients
Gradientking
Never again run out of gradients! 🌈
Stars: ✭ 157 (+153.23%)
Mutual labels:  gradients
Vehicle counting hog svm
Vehicle detection, tracking and counting by SVM is trained with HOG features using OpenCV on c++.
Stars: ✭ 82 (+32.26%)
Mutual labels:  gradients
Tailwindcss Border Gradients
Tailwind CSS plugin to generate border image gradient utilities.
Stars: ✭ 94 (+51.61%)
Mutual labels:  gradients
React Native Css Gradient
React Native css gradients - react-native-linear-gradient with css gradient support
Stars: ✭ 129 (+108.06%)
Mutual labels:  gradients
Gradientify
Create beautiful, animated gradients with ease. This JS library provides you with an easy-to-use API to create and put animated gradients wherever you want on your website.
Stars: ✭ 16 (-74.19%)
Mutual labels:  gradients
Flutter gradients
A curated collection of awesome gradients made in Dart for Flutter
Stars: ✭ 170 (+174.19%)
Mutual labels:  gradients
Uigradients
This is an effort to give back to the community, by the community. Hopefully this will help you draw inspiration and serve as a resource for picking gradients for your own projects.
Stars: ✭ 5,432 (+8661.29%)
Mutual labels:  gradients
Ink Gradient
Gradient color component for Ink
Stars: ✭ 123 (+98.39%)
Mutual labels:  gradients
tensorflow-bicubic-downsample
tf.image.resize_images has aliasing when downsampling and does not have gradients for bicubic mode. This implementation fixes those problems.
Stars: ✭ 23 (-62.9%)
Mutual labels:  gradients
Agvolumecontrolview
Visual regulator can be connected to a player or other smart house’s device making the process of controlling the level of a particular characteristic
Stars: ✭ 170 (+174.19%)
Mutual labels:  gradients
Chromatic Sass
Advanced color manipulation for node sass
Stars: ✭ 140 (+125.81%)
Mutual labels:  gradients

gradient_animation

An example project demonstrating how to animate gradients!

Image demonstrating the gradient animations

Getting Started

Run the app as you normally do with Flutter!

Key Concepts

Animations with ScrollController

  1. Define a begin and end gradient
  2. Every time the user scrolls, calculate how far down the list we are from 0.0 (top) - 1.0 (bottom)
  3. Use beginGradient.lerpTo(endGradient, 0.7)

Animations with Tweens

  1. Implement a Tween class, using static the lerp methods provide by the LinearGradient class.
  2. Create an Animation<LinearGradient> from the Tween using an AnimationController: final animation = tween.animate(controller);
  3. Redraw the gradient animation every time it changes using an AnimatedBuilder
  4. Provide a button to trigger the animation forward / backward
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].