flutter how to make electrical-like animation - flutter

I have a gif demonstrating electrical-like animation
The full gif is here: https://pin.it/3RGDs7W
Anyone knows how can implement this kind of animation on Flutter or I have to have a sequence of images to animate it

The most feasible method is to use this gif in Stack below the button. Creating an animation like this is very difficult and also it will decrease the screen FPS and consume more resource. The other way I can think of is creating this animation on rive.app but this will also take a very long time and you will have to learn how to create animations on rive.

Related

Flutter Animation slide transition

Im currently building my strength in animation for flutter there is this task I'm trying to complete so far i have been able to replicate the texts but the image at the bottom I'm unable to do that.
What i have tried
I have tried using Transform.translate() and slide transition calculating some offsets but that it's not as what's in the video below. I will be glad if someone can put me through. Thanks
Here's the video Click to view video

How to do trajectory animation in Flutter?

I'm looking for trajectory animation just like how https://leo9studio.com/ has done. You see while scrolling, those balls get scrolled from top to bottom. How can we replicate exactly in Flutter Web?
Additionally, how to create such a smooth scrolling effect in Flutter?
rive.app would be a good place to start looking, since you aren't really providing any context or code other than just a random idea, they have a great community and I have used their packaged for some neat animation on my web apps. They have a way to create your own designs and animations which would probably be the case there, unless you wanted to make it all with code then that would be a different story.
Or look at this post here How to animate a path in flutter?

endless vertical scrolling background

I want to make an endless vertical scrolling layer that gives the impression that the main character is moving upwards. I have been brainstorming on how to achieve this.
My issue is that I want objects to appear as if they are coming from above and below the screen at the same time. Secondly, I want to be able to move the main character to create and destroy box2d joints between it and some of the objects appearing on the screen. What is the best way to achieve this with consuming too much memory? I would appreciate any help on this.
Apple did a wonderful tutorial of this in a WWDC 2011 video session. It was "UITableView Changes, Tips & Tricks" and it's about 35m40sec into the video.
Since the use of the UITableView is really just a UIScrollView for the purposes of the background, you could just use a UIScrollView and you can either have it move on timer or events as needed.
Think of your player as moving within a stationary bounding box. The background can scroll using the aforementioned pooling method (as the background tile scrolls off the screen it is placed into a pool, and before a new tile is instantiated the pool is checked for available reusable tiles). Thirdly, your enemy objects will simply approach from either the bottom of the screen or the top.
Imagine your idea without the scrolling background (flying effect) and you should find that the problem is relatively straightforward.
I also needed and endless scrolling background layer. This can do exactly that, and it is super simple to set up and use. Just copy the four files in to the cocos2d folder in your project, then follow the quick tutorial seen on the github. Make sure the image you use is seamless (when you line them up vertically you can't tell where one ends.

How to create a custom camera shutter animation (like in SocialCam app)

I would like to know how can I customize the 'iris' or 'shutter' animation of the iPhone's camera. An awesome example of what I am trying to achieve can be found in SocialCam app.
When you launch the camera, there's a custom iris effect as shown below:
Thanks ahead.
I think that you do not customize the shutter, but simply create a new animation. You can do that using Core Animation.
Using core animation makes it simple to move views around using minimal programming.
Please read: http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html for more information.
Try these link , it consist of Project files too.iPhone Camera Shutter Animation

Laggy scrolling in UITextView while a CABasicAnimation is running

I've implemented a simple animation in my app. I achieve the animation by cross-fading between four image frames using a CABasicAnimation that has a from and to value set to (id)(myimage.CGImage). The animation is on its own CALayer but while scrolling a pop-up UITextView in its own small subview, the text scrolling is very jerky during a frame blend, and also pauses the animation while scrolling. Would putting the animation in its own thread alleviate the problem or is this simply to do with a complex operation being done by Core Animation?
Thanks for any help!
You can send UI animations to a separate thread but any actual updates to the application's UI are always handled/drawn by the main thread. So in that sense I think adding additional threads is not going to help, particularly if you have tried that already and it still does not give acceptable results.
The only thing I can think of that might help would be to use OpenGL to render your animation instead of Core Animation. That will pull a complete layer of abstraction out of the picture, and should speed things up quite a bit as a result. Of course, it will also likely take a lot more code to accomplish the same thing, so there is certainly a trade-off to be made.