Here is a cool typing text effect created using HTML, CSS, and JavaScript. Check out the code below:
(function($) {
var s,
spanizeLetters = {
settings: {
letters: $('.js-spanize'),
},
init: function() {
s = this.settings;
this.bindEvents();
},
bindEvents: function() {
s.letters.html(function(i, el) {
var spanizer = $.trim(el).split("");
return '<span>' + spanizer.join('</span><span>') + '</span>';
});
},
};
spanizeLetters.init();
})(jQuery);
CSS styling code goes here...
HTML markup code goes here...
The issue I'm facing is that the animation starts as soon as the page loads, rather than when the user scrolls to that specific section. I want the typing effect to begin only when the user scrolls to that part of the page. Can someone guide me on how to achieve this? I'm new to coding and would appreciate any help!