Skip to main content

Questions tagged [animation]

For questions related to graphical animations. This includes, but is not limited to sliding, tweening, rotating and resizing of shapes.

7 votes
3 answers
807 views

Why I made it I wrote this script for one simple purpose: to Rickroll my friends. How it works This is the workflow: It fetches a .png frame from a PHP endpoint on a website I own. The frame number ...
Chip01's user avatar
  • 687
3 votes
0 answers
86 views

I'm building a sliding bottom panel as a React component, adapting Phuoc Nguyen's excellent draggable element tutorial. It currently looks like this: The expected behavior is: User taps on button to ...
Jimmy's user avatar
  • 31
3 votes
0 answers
56 views

A combination of various css transitions (background-color, box-shadow, opacity, ...
user avatar
0 votes
1 answer
136 views

I created a function using requestAnimationFrame loop that works pretty much like the plain JS setTimeout function (except that ...
gaspar's user avatar
  • 173
5 votes
1 answer
780 views

My goal is to have a timer function that operates from the bash linux command line. I am looking for review and feedback. Printing the expected number of characters (dots, dashes, or bars) is nice-...
Steve T's user avatar
  • 183
2 votes
1 answer
1k views

I don't know JavaScript and it's safe to say this is my first code ever written in JS. I just needed to animate my GIFs when user hovers over them only. Googling separate concepts such as "string ...
Edenia's user avatar
  • 1,588
2 votes
1 answer
323 views

Here I have a basic text gradient effect which fades into a gradient animation, and fades out of the animation on hover in/out. Without the fade in, it looks janky and jolty. But because of the fade-...
Lance Pollard's user avatar
1 vote
1 answer
204 views

I have a side menu that appears when click on button, which works fine. But now I want to clean up my code, shorten it if possible. I was wondering if there is an easier and cleaner way to achieve the ...
Snorlax's user avatar
  • 11
2 votes
1 answer
190 views

The following code is a conversion from some old java I wrote to python. It shows the beginnings of a simulation of an ant colony. I am finding the animation speed very slow - and I'm wondering if I ...
Konchog's user avatar
  • 355
2 votes
0 answers
117 views

The code below plots a background image (sky) and then a Gundam sprite using Matplotlib. It also creates 4 buttons with obvious purposes. The Gundam class stores 2 ...
Redsbefall's user avatar
  • 1,212
1 vote
1 answer
148 views

Let's get right into it, I have a function downloadFile(url, path); Downloads file and saves it. donwloadFile.js ...
user avatar
4 votes
2 answers
288 views

I'm migrating to web development and wanted to learn CSS animations better. I was playing Prey last night and realized the "throbber" on the elevator screen would be interesting to ...
Carcigenicate's user avatar
4 votes
1 answer
119 views

I am pretty new to Javascript and trying to make a really simple tabs element which is just hiding and showing sections depending on which button is clicked. I know that this is a terrible way of ...
RobDeadFreight's user avatar
1 vote
2 answers
2k views

Animate circle using Javascript and HTML5 Canvas. The circle will be drawn at the center of the canvas. The initial radius will be 0 and will keep on increasing till 100 and then decrease till 0 and ...
user avatar
2 votes
0 answers
81 views

I've written a simple JS that takes care to animate an icon. At first I wrote it quickly and without paying attention to any kind of optimization: ...
TheRed27's user avatar

15 30 50 per page
1
2 3 4 5
26