I am almost done with my random quote(lyrics) generator. Here’s my pen.
This is more of an added aesthetic value, but can you tell me how to set the ajax request to be delayed, so that my loading animation will be finished first?
I have set a timeout function of 500ms for my loading function to execute first before calling the $(document).ajaxComplete function. However, it is not working. Any inputs will help. Thank you and happy coding!
Not sure how you could do that. I do want to say, that I like the design! One tip: use overflow-x: hidden; on the body, to remove the scrollbar (when text comes in).
The way I wrote with => is just a newer syntax (called ES2015), you replace word function with => (fat arrow) and put it between parens and brackets. You could write it also like this: