I have baloon shape designed with CSS3. JS Fiddle Example It\'s have triangle made with
:after { content: \"\"; }
I need to moving
You insert the CSS styles dynamically in the head, and then modify that:
$("").appendTo("head"); $('.pop').click(function(e){ $("#dynamic").text(".pop:after{left:" + e.offsetX+ "px;}"); });
Here is a demo
http://jsfiddle.net/HWnLd/