I have completed the deficiencies in the code. This should work. Good luck.
$w . onReady ( function () => {
$w ( ‘#transitionPoint’ ). onViewportLeave (() => {
$w ( ‘#solid’ ). show ();
$w ( ‘#light’ ). hide ();
console . log ( “ok” );
});
$w ( '#transitionPoint' ). onViewportEnter (() => {
$w ( '#solid' ). hide ();
$w ( '#light' ). show ();
console . log ( "nok" );
})
});