Questions tagged [animejs]

25 questions
2
votes
1 answer

Morphing SVG line from straight to expanded

So what I am trying to achieve here is a smooth morphing between 2 SVG shapes. As you can see from these both images these are the start and endstate of how it should look. The problem comes when I am trying to morph it. While it is morphing it…
drood87
  • 39
  • 7
1
vote
0 answers

Why does my anime.js animation's not working everytime?

I got a problem with Anime.js, I got a project to do about a game with a dice and 2 players on the same screen. I would like to animate the background color and position depending on the active player (left or right). So I've made a div with a…
ill us
  • 11
  • 3
1
vote
0 answers

I need to execute animejs seek function in one specific percentage scroll

How run seek function from percentage scroll specific? For example my landing have 7 section each one of then has 100vh, I want run seek from 3th section to 4th section. (between two scroll points) starts at 37 percentage and finish at 47 percentage…
1
vote
2 answers

Can't get Animejs library to work in my typescript & webpack project

I recently switched from ES5 to typescript and webpack. My wish is to use the Threejs library (no problems there, yet!) and the Animejs library for its fancy timeline animation functions. Spent all day yesterday trying to get it to work (you know…
mouseDown
  • 21
  • 5
1
vote
0 answers

What are the valid css properties that we can use with animeJs to animate css of an element?

I have initiated the the div's border property with 1px and I wanted to animate it to 3px but the border property in animejs method is not working. Is there any documentation for valid css properties for animejs is available ? css…
1
vote
1 answer

SVG being cut off while rendering on website screen with overflow

I'm trying to make a parallax effect train animation for a personal project. This was done by translating the background svgs (translateX) at different speeds. I have achieved this using animejs library. However, during animation the SVG gets cut…
Sai Teja T
  • 332
  • 2
  • 10
1
vote
0 answers

How to draw SVG and animation with Animejs

Help me please. I had stuck for 3 days with it.
TaSvet
  • 382
  • 2
  • 10
0
votes
1 answer

AnimeJS not drawing complete SVG with LineDrawing

I'm trying to animate the drawing of this SVG:
TheDeafOne
  • 93
  • 10
0
votes
0 answers

Export Canvas Animation as WEBM

I have a fabricjs Canvas which contains some animation data which is being used by animejs to move the objects around. I would like to create a webm out of it. Current Solution I am using mediaRecorderAPI to capture the frames, start the animation,…
0
votes
1 answer

SVG path is different after morphing with Animejs

I was trying to morph a clip-path from 1 shape to another using anime.js. The shapes have an identical number of points. I ran into some issues with the paths not correctly showing. Upon further inspection I found that when I tried to animate the d…
Tyadan
  • 123
  • 1
  • 6
0
votes
1 answer

Error when I reload my Next.js app using animejs: SyntaxError: Unexpected token 'export' This error happened while generating the page

Error when I reload my Next.js app using animejs: SyntaxError: Unexpected token 'export' This error happened while generating the page. file:///Users/.../node_modules/animejs/lib/anime.es.js (1310) This is how I am importing anime.js: import…
0
votes
2 answers

Trying to animate Images around a Ring using CSS / JS or with help of a library like animeJS

Aside from some basic transitions, i'm pretty much a novice when it comes to animations in css/JS. For a Project that starts next week, i have commited to a specific animation that i find somewhat challenging. Here's the Animation explained: There…
SimCode1
  • 5
  • 3
0
votes
1 answer

Animating div Y position smoothly with animejs

I want to make a div go up to 0px from 100px smoothly with animejs. I have this div:
And style: .div{ border: 1px solid white; padding: 10px; translateY: 100px; } And this is the js code: anime({ targets:…
0
votes
0 answers

Localhost skipping a portion of an AnimeJS animation

I am currently learning AnimeJS but I am having a problem with the animation. Basically, what is happening is that when I run a simple html that contains css styles and a javascript script on my localhost, the website is skipping a portion of the…
0
votes
0 answers

How to hook up an animejs SVG animation to AudioContext analyser?

I'm creating a custom audio player. That looks like so: The darker grey colour a the bottom is an SVG, which is an audio visualisation, in the form of a wave. (which should change based on the audio frequency) Currently the animation plays when the…
1
2