I ask to help in amination of dynamically created objects. Objects are created, but the transition property is not applied as needed. Rather, it is applied correctly only if I use a profiler - then there is movement, if without it - the position changes, but without animation - it just jumps.
.wrp { position: absolute; width: 500px; height: 300px; perspective: 500px; left: 200px; } .D { position: absolute; left: 100px; top: 100px; } </style> <script> function Temp() { $("<div class='D'>text</div>").appendTo(".wrp"); $(".D").css({"transition": "all 2s", "transform": "translate(200px, 200px"}); } </script> The idea: to create an object in the desired position (100, 100) and smoothly move it to the position (200, 200).
"transform": "translate(200px, 200px"typo. - neluzhintransitionto css? - Yuri