Change Image on click In Elementor

Change Image on click In Elementor

Uriel Soto

2 года назад

11,556 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yacinebrahimi7637
@yacinebrahimi7637 - 03.12.2023 22:27

is it possible to add multi play/pause button in the same page ?

Ответить
@zionpax8908
@zionpax8908 - 03.12.2023 21:44

I used this to create popup toggle button for a dropdown menu. Is there a way to make icon recognise if the popup is opened or not and adapt itself accordingly?

Ответить
@Toastrbot94
@Toastrbot94 - 30.11.2023 01:25

@UrielSoto
I am trying to implement this without Elementor Pro. Is there a way to go around the custom CSS section and just plant it in the html?

Ответить
@devilionyt5178
@devilionyt5178 - 11.07.2023 12:40

This really helps, Thanks a lot, what about transition time? how to add transition time? as on click hide /show section is also working with this, I need to set transition time on icon.

Ответить
@fred3r1k
@fred3r1k - 24.03.2023 14:34

I have this issue: Uncaught SyntaxError: Identifier 'audioButton' has already been declared

Ответить
@leonardliu3028
@leonardliu3028 - 01.09.2022 14:29

.toggle-pause .elementor-icon i::before{
content: '\f04c';---I am really a bigginer, but want to have the toggle icon effect, it doesn't work here, ------.toggle-pause .elementor-icon i----where are these from? where to define these?

Ответить
@FrankLopezz
@FrankLopezz - 17.08.2022 22:04

you still having your patreon weekly group calls?

Ответить
@avwa6145
@avwa6145 - 31.05.2022 15:42

When I press the play icon, the icon changes to the text "f04c" instead of the pause icon.

Ответить
@Askitbasket
@Askitbasket - 30.05.2022 17:08

This worked well for me and I was able to adapt it perfectly for a hamburger icon that I wanted to change into a close button. What would be the best way to add an animated transition?

Ответить
@SveinnTryggvason
@SveinnTryggvason - 11.05.2022 13:34

Thanks for the tutorial. How would you go about using dynamic images (from custom field, ACF or such) in the css? Is that possible?

Ответить
@tomeusastrecabanellas983
@tomeusastrecabanellas983 - 26.04.2022 14:21

Hi there, thanks for your video, that's what I'm looking for, but I'm unable to make it work.

I made new page, section, columns : inside HTML and icon widget

HTML content :
=============
<script>
const audioButton = document.querySelector('.audio-button');
audioButton.addEventListener('click', function(){
audioButton.classList.toggle('toggle-pause');
});
</script>

Icon
=======
CSS clases = audio-button
Custom CSS = .toggle-pause .elementor-icon i::before{
content: '\f04c';
}

I click on the button, but nothing happens. :/

Ответить