Google Classroom
GeoGebraGeoGebra Classroom

Animation of Lines with Square and Rectangle (Green)

Draw lines y=x and y=-x. Create a slider say 'c'. Then insert any number of points on previous lines such as (c,c), (-c,c), (c,-c), (-c,-c), (c+1,c+1)..., Now draw perpendicular lines in each point to y=x and y=-x. Change thickness of lines. Choose Dynamic color Green. Then animate slider 'c'.