All Questions
9
questions
2
votes
1
answer
945
views
Animating GIF on hover in Javascript
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 ...
4
votes
1
answer
135
views
Event triggers for animations using vanilla ES6
I'm new to JS and wanna know right code style or approach to cod Vanilla JS using ES6. To practice this, I'm using ESLint JS code-style of AirBnb and referencing clean-code-javascript repo. However, I ...
5
votes
2
answers
264
views
Sparking animation for Button
I just came through a GitHub repo, which has an amazing animation for Button in Android.
So, I thought why not make that for web buttons too.
And I started ...
3
votes
1
answer
189
views
Animating sprite without libraries
I'm building a small game in pure JS for my own learning purposes, using sprites to model players.
Before I go further, I want to try to get the animation down. The below code should produce a blank ...
2
votes
1
answer
1k
views
Overriding scrolling behavior for navigation elements
I am new to JavaScript, and trying to ensure the i write the best possible code instead of "copy & paste".
I hope i am asking correctly, want to know if my code I have written is done correctly ...
4
votes
1
answer
132
views
YouTube video intro, and autoscroll when video ends
This code creates an intro video using the Youtube API, screen text written by JavaScript with a typewriter kind of effect. How can I rewrite this as succinct object-oriented code? Also, I'm not sure ...
1
vote
1
answer
69
views
Repetitive event handler for a toggling UI control
I feel like this bit of code could have been written more elegantly, especially with the huge if/else statements. Can somebody help me break this down? It would really help me out in the future.
<...
8
votes
1
answer
2k
views
Animations when navigation items are clicked
I'm a beginner in jQuery and am wondering how I could write the following code shorter, since I'm repeating a lot.
Working example
...
3
votes
1
answer
68
views
Combining four functions for toggling gallery displays
Here is my HTML:
...