Тёмный

Automated Javascript Image Slider | JavaScript Project For Students |  

#SmartCode
Подписаться 2 тыс.
Просмотров 487
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@Trazynn
@Trazynn Год назад
This is insanely helpful. However, I'm trying to add two more functions to this. I'd like the images to be in a random order, and I'd like to see a fade animation in between. I know that this drastically increases the complexity of the project. But perhaps you have an idea how to manage this.
@smartcode9021
@smartcode9021 Год назад
Hej! I'm sorry that I could not answer the comment earlier. I believe what to wanna achieve can easily be done and it won't drastically increase the complexity of the project. You just need to add the face animation to the img element one the images is shown, and remove it from the img element before you show the second image, and the add it again. So it is a kind of toggle that can easily be done via classList.toggle()
@smartcode9021
@smartcode9021 Год назад
If you choose the image randomly then there is a risk that a single and same images is choosen again.
@ijajulislam7223
@ijajulislam7223 2 года назад
Awesome
@smartcode9021
@smartcode9021 2 года назад
Thanks
@ANASINGH20BBS019
@ANASINGH20BBS019 Год назад
Extremely helpful and easy , thankyou
@smartcode9021
@smartcode9021 10 месяцев назад
Glad it helped
Далее
Dice Roll JavaScript | JavaScript tutorial
30:25
Bearwolf - GODZILLA Пародия Beatrise
00:33
Просмотров 399 тыс.
DOM events | Lecture 8 | JavaScript DOM
28:31