@artimys
Posted
Really cool solution. Animation is subtle and not in your face. It complements the page.
In terms of JS using a boolean to switch between 2 slides is very simple and I don't think I would change it since this design only has 2 slides. It even creates the illusion that the slides start over when at the end. To scale more than 2 slides definitely switch from boolean to a counter variable method.
My only tip would be to organize the slide data into js objects and reference them appropriately.
let slide1 = { authorName: 'John Tarkpor', authorTitle: '...', imgPath: '...', review: '...' }
let slide2 = { authorName: 'Tanya Sinclair', authorTitle: '...', imgPath: '...', review: '...' }
slide1.authorName
Keep on Javascripting!!
@ApplePieGiraffe
Posted
@artimys
Thank you for your feedback!
I was wondering if I might somehow be able to use objects in case I was working on a project that involved more than simply two slides. Your tip helps a lot! 😊