var elements = document.querySelectorAll('.content');
anime({
targets: elements,
content: 100,
});
<script src="https://raw.githubusercontent.com/juliangarnier/anime/master/lib/anime.min.js"></script>
<span class="content">50</span>
Apologies, this code snippet is not functioning as expected. I am struggling to implement anime.js after importing it in the code. However, this piece of code works perfectly fine for me in my current project.
The main objective with this code is to transition the number within the span element from 50 to 100. A similar example can be found in the official documentation here:
However, the example provided in the documentation deals with DOM attributes whereas I want to manipulate the DOM content itself. Is this achievable using anime.js?