All Questions
10 questions
2
votes
1
answer
56
views
Refactoring string incrementing and duplicating function
I wrote this script and got what I wanted from it. However I'm looking for input on ways I can improve the function.
My goal was to scrape a bunch of image links from a website I'd like to rebuild. I ...
3
votes
0
answers
570
views
Simple vanilla JavaScript Carousel with tabs and pause button
I currently got into coding and I am completely self taught. Since I know that my code is far from being perfect, I am asking for advice and tips on how to improve. Feel free to drop in any comments ...
3
votes
1
answer
2k
views
jQuery image carousel
I have made this custom image carousel, using HTML5, jQuery and CSS. My aim was to make it really lightweight but with (just) enough features: "bullets", auto-advance, responsiveness.
...
3
votes
1
answer
767
views
Tilt on hover image
I am asking for a review of this code to see if I am following common best practices or if there is a better way to accomplish the goal set for this code.
My purpose was to create an image that would ...
2
votes
1
answer
5k
views
"Rasterbation" function to split an image into a grid
I want to create a function that splits an image into many separate blocks that when put together look like the image as a whole, often called a Rasterbator. Given the number of tiles for height and ...
3
votes
2
answers
5k
views
JS cross-fade transition
As the question says....Can this be done any better? I could introduce more variables to cut down on function number, but does it make sense? So this is a simple cross-fade between two images :
...
1
vote
2
answers
82
views
Scaling and cropping an image adaptively based on the window dimensions [closed]
I've tried my best (I'm new to JS) to write a script that make an image fit to its parent div with respect of the ratio and overflowing when needed.
For example, if the ...
2
votes
4
answers
13k
views
Hovering over images to show another image whilst fading in & out
I'm trying to figure out how to correctly hover over an image to fade in another image and when you move your mouse out, it would go fade back to the normal image.
...
5
votes
3
answers
375
views
Simple image gallery
I have a simple gallery that hides and shows images. It works fine, however, I am not satisfied with my approach, and my code seems redundant. Can you check my code and give a better idea on how I can ...
2
votes
2
answers
336
views
Cleaning up a rotating image gallery
I have created a nice little image gallery for the web. I set out wanting 3 things. 1. The whole gallery had a basic level responsiveness to it. 2. The gallery would take images of any size, and ...