This new era in web design and functional websites are moving from a text based, semi-dynamic framework to a web application framework. While hand-coding this functionality is beyond the scope of most there exists a slew of tools that make taking advantage of advanced web functionality a breeze.
JQuery and JQuery UI
CreateJS is a suite of modular libraries and tools which work together to enable rich interactive content on open web technologies via HTML5. These libraries are designed to work completely independently, or mixed and matched to suit your needs. The CreateJS Suite is comprised of: EaselJS, TweenJS, SoundJS, PreloadJS, and Zoë.
A myriad of examples, code snippets and tutorials abound to get started with these tools. Below are some helpful links to get you started.