I need assistance creating a div with a CSS3 animated timer inside it when a button is clicked. Here is the code I have been working on: http://jsfiddle.net/arcco96/y5nov6rz/1/. Unfortunately, the div is not being created as expected. I believe the code should work fine, but I am unsure if it is possible to create a div with a CSS animation after the page has loaded.
The foundation of my fiddle is based on this example: http://jsfiddle.net/zbGCq/118/.
My current approach to creating the div goes as follows:
$("#btn1").click(function(){
jQuery('<div/>', {
class: 'timer',
}).appendTo('#center');
jQuery('<div/>', {
class: 'mask',
}).appendTo('#center');
});
Any insights or suggestions would be greatly appreciated.
Thank you,
P.S. On a slightly different topic, I would like to know if it is possible to overlay content on the #timer element or if that will pose a challenge?