Improving Look and Feel of web pages combining the latest
web graphics standards HTML5 Canvas, WebGL™, and CSS:
HTML5 3D Canvas Animation Library taccGL
for adding 2D and 3D graphics to your web pages
3D Objects from scene files
Deformed, sliced, mapped elements
Lighting and Shading
GPU based WebGL™
fallback to 2D canvas
for adding 2D and 3D graphics to your web pages
Plug-In free, cross html5 browser, open source.
Easy use with
based on HTML 5 Canvas and WebGL™
full scale 3D hardware graphic acceleration. This article describes, how to build parallax scrolling websites
with full 3D harware acceleration and WebGL™
Create a 3D model using a (commercial or open source) 3D modelling program and use
for drop-down and pop-up menues etc.
WebGL™ is a trademark of the Khronos Group Inc.
Mouseovers based on WebGL™
Enlarging 3D Objects on this page
External 3D Models:
If you like taccgl™ please share it with others, e.g. link to us,
refer to us in social networks, or follow us on twitter etc.
Comparision of taccgl™ transitions and CSS transitions for the visibility property.
CSS transitions on the Height property can gradually display / un-display
elements in a way that other elements fill up the resulting empty space,
like display:none, which does not work gradually. These can easily be combined with taccgl™ transitions
taccgl™ includes functions for deformation and morphing of HTML elements.
For example an element can be morphed from a rectangle into a circle or it can
be mapped on an uneven waveformed surface
When showing, viewing, or developing animations and/or computer games
take care about epilepsy. A warning message shows up before viewing the examples.
Beta Version 0.60-150902 Released
Version 0.60 was released on August 26, 2015 (and bug fix built 0.60-150902 on Sep 3, 2015), now supporting
development of parallax scrolling web sites, see blog article Parallax scrolling with 3D Acceleration
and Version History.
The development of mobile and responsive sites is explicitely supported and
a beta of the mobile home page of taccgl™
demonstrates this. Read more about development of Responsive and Mobile Layouts.
This is a beta release and quite naturally it contains bugs
and is not yet completely implemented (e.g. does not yet implement all HTML tags and not all CSS properties). See
We would be happy for bug reports and comments.
taccgl™ is provided under an open source BSD like License. You can download the library and place it on your test web server.
Under good conditions the library directly uses hardware graphic acceleration
and its performance critical parts run directly on the computers graphic unit.
This provides an extreme performance gain compared to DOM and script based animations and
allows you to run smooth animations with thousands of elements.
If no hardware acceleration is present (or if it is not usable
because of the browser or the graphics driver) the library uses the
HTML 5 - 2D canvas which provides quite fast animations with restricted features
on fast computers as well.
For slow graphic accelerators and/or slow processors that can not
handle the full screen resolution smoothly, the library plays the animations
only on a portion of the screen or becomes completely inactive to not interfere
normal operations on the page.
On older browsers that do not support HTML 5 canvas and no animations show up.
If supported, the GLSL parts are downloaded into the graphics card and executed there;
possibly in parallel on several processors, which gives a dramatic performance gain.
taccgl™ is an HTML 5 library making special use of the new canvas feature.
HTML 5 means that the library explicitly runs only on newer browsers, e.g. IE 9.0 and up, current versions of most other browsers.
For older browsers it becomes inactive, the idea is that users can still
view pages that include the library, however without the animations.
taccgl™ can display CSS formatted HTML elements with the new HTML5 3D canvas which brings the following
Elements can be animated using GPU acceleration,
they can be moved, accelerated, deformed, bent, lighted etc.
and they can enjoy the performance of the GPU which
normally has enough power to separately animate
thousands of copies of (fragments of) HTML elements.
Also HTML elements can be fully integrated into a 3D scene, e.g.
they can rotate in 3D, they can be displayed before or behind other HTML elements
even partially, and they can cast shadows or shadows can be casted on them.
In addition HTML elements can be mapped on 3D objects such as cubes or spheres.
- animating CSS formatted HTML elements
- mapping of HTML elements on 3D objects
- displaying 3D objects created with a modelling program (e.g. Blender)
and aligning them with HTML and CSS
The new HTML 5 canvas feature in its 3D version brings fantastic new graphic and animation features, such
- running of graphic transitions directly in the clients GPU (graphic acceleration unit)
- performing of animations with thousands of triangles,
- separately controlling every pixel and calculating each pixel's color once per frame,
and also special 3D features such as
- 3D depth buffering for hidden surface handling,
- 3D lighting for simulating light sources and reflection on 3D objects, and
- automatic 3D shadow calculation.
In pure HTML 5 canvas 3D/WebGL™ the content to be displayed must be individually programmed.
The taccgl™ library greatly simplifies this process.
by allowing the user to use CSS formatted
HTML elements togehter with 3D Models created with a modelling program.
Hover or click on the various green links on this page to see pop-ups
containing additional explanations.
The appearing pop-up window is displayed using taccgl™ and WebGL™,
mostly (performance of the GPU permitting) to correctly display its shadows.
Note that the shadow can be quite complex, since the underlying page is
not flat but seen as a 3D surface.
In addition opening and closing animations are played.
The opening animation is choosen randomly from various opening animations that are e.g.
morphing the element from a circle or a wavs from to its final rectangular form.
The closing animation makes the element explode into many parts.
Hover or click on the various 3D objects and screenshots to see
animations enlarging and rotating the objects.
Create Animations with HTML 5, CSS, and WebGL™
Canvas 2D / WebGL™ provides extraordinary 2D and 3D graphic
taccgl™ makes it easy to use
create content with HTML5 and CSS, animate with WebGL™
and add 3D objects designed with a modelling tool
and show them with WebGL™ (currently WebGL™ is not available, so this 3D Objects do not show up).
<div id="el" style="border:3px solid black; ...">
I am an actor
e.g. rotate around X axis
e.g. perform multiple rotations and motions on multiple copies of an element
e.g. Turn into a box and rotate
e.g. Map other HTML elements and colors to various faces of the
box and continue rotating.
e.g. rotate around Y axis
Content in HTML (as usual) and Eye Candy with taccgl™
- easily animating existing content
- compatible with dynamic generated HTML text, search engines, screen readers etc.
Canvas (vs. CSS) makes animations faster and more flexible.
Canvas 3D (WebGL™): complex anmiations in full 3D.