3

This is a tool which builds a bicycle visually from components the user selects. What do you think, can this be done with HTML5/JavaScript (jQuery)/CSS3? What do I need to know to start? What do you think the trickier parts will be?

http://www.hotcards.com/bikes_102/bikes.html

2
  • Yes, this can be done. But what do you know already of these subjects? Commented Jun 29, 2010 at 1:13
  • Also, FWIW, if you do redo this, set it to preload all the images, or even a "loading" until they are all loaded. When I first tried it, I was confused because it wasn't all loaded. Commented Aug 25, 2012 at 22:47

1 Answer 1

2

Yes, this can definitely be done in HTML/JS. And you don't even need HTML5 or CSS3 for that.

I think the trickiest part will be the positioning of the part images, especially with different frames.

Sign up to request clarification or add additional context in comments.

3 Comments

I don't think it is that difficult to position the parts on different places when selecting different frames: just wrap everything in a 'master' div with the frame name and position parts with CSS like .fastFrame .threePedals, etc. It only means a lot of CSS rules.
Yup. But it's not only the frame that changes positions. There are some other parts that you have to factor in as well, e.g. the wheels and the stem. I didn't say it's overly difficult, but I do think it's the trickiest part. Everything else should be rather straight forward and easy.
@Marcel: the whole thing is driven by an XML-based parts catalog, which references images for each part and also defines exactly how they fit together. All you'd need is some JS to take those pre-defined coordinates and plug them into the styles...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.