Question

why input field necessary to run Raphael ? I have just build Raphael animation with another inspiring code. Customised code working well but unfortunately the code doesn't work without input field.

<input type="text" value="70" id="radius12">
<input type="text" value="#fff" id="color">

DEMO http://jsfiddle.net/V54hR/ does any body have any clue why it is necessary ?

Était-ce utile?

La solution

You have small typo in your code, Input field are not necessary for Raphael. When you give <input type="text" value="#fff" id="color"> this Raphael assumes color variable as your input field

colour = "#000",

change this code to

color = "#000",

Updated fiddle

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top