Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Animate elements and smooth-scroll on scroll.
Scroll Effects is easiest to learn by reading the example, changing it, and observing the result.
$('#toggle').on('click', function () {
$('#panel').toggle(300, function () {
// runs after the animation finishes
const state = $(this).is(':visible') ? 'shown' : 'hidden';
$('#status').text('Panel is ' + state);
});
});Practice the Scroll Effects example in a small scratch file, then explain what changed and why.