Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have no experience with Sprite Sheets or animating via CSS, and I have my own sprite sheet (found here), and I researched plenty.
Only thing useful I got out of tutorials is that you can use a HTML5 Canvas and JavaScript/CSS to make it animate. The whole point of this is so that I can make a img loop a animation once, then change the src to this. Again, I did plenty of research and got little knowledge. How could I accomplish this?
You want to use steps in CSS animations. It allows to recreate an animated gif, just with a sprite sheet that gets shifted every few ms.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to develop a maze, but the maze is bigger than the screen and i can't scroll down to see it.
I tried to change the height of the body, but that didn't work.
Can anyone see what that makes the maze so big?
here is all of my code on github.
here is how it looks.
Any help is appreciated!
You need to change your layout posting on your HTML body elements. You're using the "fixed" position, and you should be using the "relative" position.
This should explain the difference and get you back on the right path.
Additionally, you can check this for posting.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
On my website I'm trying to display the animation of a coin being flipped multiple times in the air and coming back to the surface. When the animation is over it should become a static image of the side the coin landed on.
I've found multiple ways to do this such as CSS animations, sprites,... but the options with CSS animations seem to be very limited if I want a rather advanced animation and others seem to have some flaws aswell.
What is the best method of displaying an animated image for a certain amount of time and then becoming a static image?
One option is to use Javascript. You could do:
<img src="animation.gif" alt="coin" id="yourImage">
<script>
var image = document.getElementById('yourImage');
window.setTimeout(changeImage, millisecondsToEndOfAnimation);
function changeImage() {
image.src = "staticImage.png";
}
</script>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How would you go about animating (and creating) the circles as shown in the image with javascript? I'm not sure what to call this, so I just said "border".
You'll need to animate svg elements bound to some data. Have a look at the D3 Radial Progress Component. This component is based on d3.js which is "a JavaScript library for manipulating documents based on data".
Please note that d3 is really complete and might be an overkill if you are just dealing with one graphic. But at least now you know what to search for.
There is a lot ways to do it, here are some
JS/Canvas:
http://p.ar2oor.pl/cprogress/
http://anthonyterrien.com/knob/
CSS3:
http://fromanegg.com/post/41302147556/100-pure-css-radial-progress-bar
http://www.alessioatzeni.com/blog/css3-loading-animation-loop/
SVG:
http://raphaeljs.com/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
This is the layout of what I want to do.
2 divs are there.
Below one(rectangle shaped) should be used for image thumbnails which can be scrolled horizontally
Square on above is for the image that will be shown when clicked on thumbnail
Can anyone guide me how to proceed for thumbnails and scrolling.
Building something like this can be quite straight forward but can be time consuming. I think that the best way you should go around this would be to use something that is already been developed and is already out there and is free.
If you take a look there seems to be a lot of people who already have the code built and ready for download similar to what you are asking for
Hope this helps!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to create a image gallery using Html 5 Canvas and when I hover a image, it must grow and change opacity. In addition to image selectable and draggable?
How can I do this? Any ideas?
Well sir, first try to code anything and then come to ask for assistance with particular problem. For now it looks like you have no clue about subject and not even tried. I can anwser a question like how to manipulate opacity in canvas, how to implement drag and drop, etc...
but NOT I need someone to implement my whole idea for me
I should also point out that Canvas isn't probably the best technology for this task (in the meaning of both performance and implementation difficulty).
If you insist, you will have to rewrite all functionality which is already easily accessible with DOM and libraries like jQuery.