PHP

Floating Bubbles II - SVG, PHP, and now JavaScript

This is part two of the Floating Bubbles. See the previous post, if you haven't already.

My focus was to add interactivity to the SVG elements from the previous post. I decided to have the bubbles float towards the top on clicking. First of all, it is simple to add scripting to your SVG. SVG has an element called script, just like the XHTML. However, SVG will need to have unparsed character data. So, you will just need to wrap the inside of the <script> tag with the proper encoding:

Floating Bubbles - using SVG and PHP

Well, I have been very busy with school and other projects, that I have not been able to really get this personal site going. School has now ended for me as of 2 days ago, and I wanted to put up one of my fun personal learning projects on the site.

Syndicate content