Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener("DOMContentLoaded", function () {
- var title = document.querySelector('.title');
- function getDataAnimation(element) {
- var animation = element.getAttribute('data-animation');
- console.log(animation);
- }
- getDataAnimation(title);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement