Тёмный

Elementor - Accordion Slider Revealing Content - with No Plugins 

Web Squadron
Подписаться 76 тыс.
Просмотров 11 тыс.
50% 1

Now this may sound like a lot to do, but it's not if you focus on the codes for the Elementor Sections and Columns. You could now have a Full Width or a Boxed Width Accordion of Images that expand to show further content as you hover.
BUT - we're not using an Accordion!
WHAAAAAATTTTT !!!!!?????
Watch the Video and it will make sense.
The Codes below are different from the Video as they've been adapted slightly. Big thanks to this man who helped create the code: www.fiverr.com/hishamahmad007
Right, let's get to it;
------- SECTION CSS:
@media (max-width: 768px){
.acc-item{
flex: 0;
}
}
.acc-item{
flex: 1;
transition: all 0.8s ease;
}
.acc-item:hover{
flex: 8;
}
selector{
overflow: hidden;
}
------- COLUMNS
Give them the Class Name of acc-item
In the Custom CSS add this:
selector .straightheader{
opacity: 0;
transition: 0.5s ease-in-out;
}
/*Show Content on Hover*/
selector:hover .straightheader{
opacity: 1;
}
/*Hide Content on Hover*/
selector:hover .rotateheader{
opacity: 0;
}
/* Shading when not hovered*/
selector .elementor-background-overlay {
background-color: #000000;
opacity: 0.6;
}
/* Remove shading on Hover*/
selector:hover .elementor-background-overlay {
background-color: #000000;
opacity: 0;
}
selector{
overflow: hidden;
}
------- ITEMS INSIDE THE COLUMN
For all items inside the Column, ensure that they contain this CSS per Item
selector {white-space: nowrap;}
selector h2{
pointer-events: none;
}
AND...
Per Column, go to Style, and go to Background Overlay.
Even though the Overlay is applied inside the CSS, still click paintbrush, and ensure the 0.5 value is deleted to be blank.
Do that per column :)
AND.....
Adding Text Editor will cause the Columns to increase in height.
Make sure that you:
1. Give it the Class Name = straightheader
2. Add this into the Custom CSS for the Text Editor:
selector {white-space: nowrap;}
selector h2{
pointer-events: none;
}
3. And if you have long Text in there, then add breaks to text to apply returns.
And it will be fine.
-- Book an Appointment/Consultation: calendly.com/info-28542
-- LinkedIn: / imran-siddiq-7320a74a
-- Instagram: / batswebsitedesign
-- Twitter: / imranwebsites
-- Facebook: / websquadrontraining
PS: websquadron.co.uk
PPS: Contact us at info@websquadron.co.uk
PPPS: We only build with Elementor Pro

Хобби

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

 

3 фев 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 124   
@xDwTz
@xDwTz 2 года назад
Going to try this - thanks for your live stream yesterday, really enjoyed it and lots of good info
@websquadron
@websquadron 2 года назад
Glad you enjoyed it :) This code and getting it to work took lots of trial and error, but follow the code instructions in the description.
@ziziphus_skin
@ziziphus_skin 2 года назад
Complete newbie here and you made it so easy to follow even for me. Thank you SO much!
@ziziphus_skin
@ziziphus_skin 2 года назад
I finally got around to making it and it was perfect on Elementor (pro version). I felt amazing! Then once I clinked Update, it looked wrong on mobile and desktop. I had 4 columns and in the mobile they became squares. In the desktop, there is no overlay. I did notice that the section css in the video and what you put in description were different. I used the one in description. Could you please help?
@danplumadore647
@danplumadore647 2 года назад
This is sooooooo timely. I was thinking of doing something for my own site. Thanks so much, mate!
@websquadron
@websquadron 2 года назад
Go for it!
@comleonmoto
@comleonmoto 2 года назад
Another fantastic trick, Imran! I've just tested it and it's great. I still have to find a nice turnaround for mobile, but on PC, it's amazing!
@websquadron
@websquadron 2 года назад
You can do it!
@wpeasy
@wpeasy 2 года назад
Great content as always. Love the simplicity.
@websquadron
@websquadron 2 года назад
Much appreciated!
@user-dj8gt6ik7c
@user-dj8gt6ik7c Год назад
This is fantastic. Thank you!!
@alexmyth1109
@alexmyth1109 4 месяца назад
Amazing!!! Just looking for it!
@jackiemasek8302
@jackiemasek8302 2 года назад
Oooh! That’s pretty. I’m going to try this first thing Monday morning.
@websquadron
@websquadron 2 года назад
Have fun! Please do refer to the description with the codes to use as they are modified from what I used in the video, but the same method.
@DomCos78
@DomCos78 2 года назад
Very cool build bud. The only thing I would suggest from an aesthetic point of view is the transition timing of the vertical title when you go off a tile as it shows over the tile title for a split second. And if you pair this with horizontal scroll, it may still work nicely on mobile.
@websquadron
@websquadron 2 года назад
Good point there about the transition. I'll tinker with the code and update once done.
@resolve360
@resolve360 2 года назад
In the code by Imran, search for this code i.e.: selector .straightheader{ opacity: 0; transition: 0.5s ease-in-out; } Now in this just remove - " transition: 0.5s ease-in-out; " so it will be like : selector .straightheader{ opacity: 0; } Thats it...Done ;)
@JulieJohn2015
@JulieJohn2015 2 года назад
Love love love this!
@websquadron
@websquadron 2 года назад
Awesome!
@amrfarrouh
@amrfarrouh 2 года назад
Very Very Cool , I tried it and its really amazing
@websquadron
@websquadron 2 года назад
Great 👍
@JuanSanchez-nd2nx
@JuanSanchez-nd2nx 3 месяца назад
Hi! can someone give me some tips about how to solve this problem? I have applied the css code to the column but doesn't apply the opacity , the code is making disappear the text but doesnt affect the style of the background!
@GetTennisBar
@GetTennisBar 2 года назад
Amazing and informational
@websquadron
@websquadron 2 года назад
Glad you think so! :)
@gigabite9815
@gigabite9815 Год назад
Thank you sooo much bro
@tdiddier2726
@tdiddier2726 4 месяца назад
On your new video, how can you make the accordion tab (item 1, item 2, item 3) an image? So user clicks an image to expand. Thanks for all your awesome videos!!!!
@michaelclark3840
@michaelclark3840 Год назад
This is great. Lots of work put into this! I tried it out and ran into the same issue as another use of the background overlay only showing on the back-end, not front-end of the site. Ran through the columns and removed the overlay to 0 without success. Tried to diagnose some more, but with no luck. Any possibility a recent update caused a conflict of some type on this?
@websquadron
@websquadron Год назад
Hi. It's weird because I don't get those problems, and there could be something else that affects it. Pity that Elementor don't provide stuff like this straight out of the box.
@user-dj8gt6ik7c
@user-dj8gt6ik7c Год назад
Same problem here! Would also love to see a delayed transition if possible!
@dileepbatchala1590
@dileepbatchala1590 Год назад
Hi, how to make one accordian opened by default. Its really hepful for me if anybody gives a solution
@SasiprabaharanS
@SasiprabaharanS 2 года назад
so Imran morning :)
@fidelisagency6015
@fidelisagency6015 4 месяца назад
Hey great video ! I have a question : does the same code apply to the method wight flexbox containers ?
@websquadron
@websquadron 4 месяца назад
I have an alternate vid fro that: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9VvR3rA0908.htmlsi=67nqackPLd-0B_os
@joeyhensley18
@joeyhensley18 9 месяцев назад
Love this effect! I was able to reproduce it fairly easily except for one thing. In the example, you have very short headings. I have some large headings for a course catalogue and instead of it being in one straight line in the rotated heading, it seemingly arbitrarily puts line breaks in so it's in 3 lines instead of one. Did I miss something?
@websquadron
@websquadron 9 месяцев назад
That’s where long descriptions don’t always work well for this method. Have you seen our alternate method? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9VvR3rA0908.htmlfeature=shared
@dkass465
@dkass465 Год назад
Thank you so much for you clear instructions ! Question, everything went really smoothly BUT, I tried adding a Text editor block and now when hovering over the columns, the images get really large, do you know how to fix this?
@websquadron
@websquadron Год назад
Is the image set as contain or cover?
@dkass465
@dkass465 Год назад
@@websquadron cover, when I remove the text Editor, it works (if I add the text editor to the first column, the rest of the columns when I Hoover over them expand the columns heights)
@joeyhensley18
@joeyhensley18 9 месяцев назад
Having the same issue. Did you find a solution?@@dkass465
@genethompson9154
@genethompson9154 2 года назад
Imran, love this, great tutorial for a non-coder... Two things... where does the @media go? Also, is it possible to have the first window open by default?
@websquadron
@websquadron 2 года назад
A good point about the first open immediately. Not sure about that. The @media goes at the start. Thus: @media screen and (max-width: 480px) { body { THIS IS WHERE THE NORMAL CODE GOES } }
@genethompson9154
@genethompson9154 2 года назад
@@websquadron Thank you Imran. Much appreciated, I’ll let you know if I find a way to get the first window open by default
@saudpardesi2814
@saudpardesi2814 Год назад
Hey, did you find any solution for this? How to make first column open by default?
@dileepbatchala1590
@dileepbatchala1590 Год назад
@@genethompson9154 Did you find any solution, if yes please share
@user-ok4ml5hp9n
@user-ok4ml5hp9n 9 месяцев назад
Thank you very much for the video. I watched it carefully and pasted all the css codes as you specified. Unfortunately it didn't work for me. Could the reason be related to elementor? Do I have to work with Elementor Pro?
@websquadron
@websquadron 9 месяцев назад
I have another alternate way. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9VvR3rA0908.htmlfeature=shared
@corinagrether
@corinagrether 8 месяцев назад
Hi Imran. Thank you that was exactly what i was searching for. But it seems that there's an issue with the flex-containers. My containers are creating kind of conflict blinking and not reacting well. I've tried your tutorial instead with columns and sections, with containers.
@websquadron
@websquadron 8 месяцев назад
I’m not sure this method is that good anymore due to the containers too
@corinagrether
@corinagrether 8 месяцев назад
Hi imran. Yes i suppose it’s a container issue. So sad 😢 but well I’ll will seeking out now for new adventures and a different solution. Thx anyway!
@user-vv9fd6qo9p
@user-vv9fd6qo9p 6 месяцев назад
Hey I follow step by step and works perfect in editor, buuut in preview dont open the images, and dont do opacity in "rotate", and its like the css tried but no "straight" just make kind of pop... but the content in this shows perfect pls help Thnks a lot!!
@websquadron
@websquadron 6 месяцев назад
I'd have to see the site and how it's built but that is paid consultation. Sorry.
@pete-houghton
@pete-houghton Год назад
Its a brill tutorial and something that I was looking for,,, It looks great on pc, tablets but not so on mobile, unless you have about 5 columns as the space on vertical mobile phone layout is reduced somewhat. This tutorial is for the columns within one section... is there a way for to have the same thing vertical for mobile phone view using rows?? For me, I had to go into the advanced settings in Elementor and then > Responsive > and then check 'Hide on mobile' I then need to do another section specifically for mobile (hide on desktop/ tablet. So, can I do a vertical accordion with rows, in the same manner?
@websquadron
@websquadron Год назад
In the comments someone did add some advice about doing it as vertical but I’ve not checked that out.
@pete-houghton
@pete-houghton Год назад
​@@websquadron Thanks Imran for getting back; I did try various options and created a section and created rows and tried it, following your instructions (omitting vertical/ rotate instructions and classes ) but it wouldnt work as neatly as the horizontal instructions you presented; instead I had to revert to the 'toggle' internal plugin ; but that just left with text to click on and then the pic revealed which didn't look very presentable or as good. in the end , I had to revert back to your instructions and reduce how many columns in each section. For a comfortable presentation on mobile phones; I found that a max of 5 columns more comfortable viewing: 6 at a push. I had to copy and paste 2 more with columns and change pics for additional books; as can be seen : The only problem I encountered, is that the pictures when hovered over, enlarged somewhat... 'centre centre' produced thumbnail images of about 150x150,, Top Centre left the top section of the pics for viewing.. - so i couldn't view the whole image when hovered over; bookstore.pete-houghton.uk As always thank you for your videos and working so hard to produce loads of easy to follow and informative video instructions..
@ziziphus_skin
@ziziphus_skin 2 года назад
I finally got around to making it and it was perfect on Elementor (pro version). I felt amazing! Then once I clinked Update, it looked wrong on mobile and desktop. I had 4 columns and in the mobile they became squares. In the desktop, there is no overlay. It is not a caching problem. basically NO ACCORDION :( I did notice that the section css in the video and what you put in description were different. I used both in description. Could you please help?
@websquadron
@websquadron 2 года назад
The css in the description is slightly tweaked to work better. For the mobile it needs to be modified to work and look better due to the different screen size. Someone added some modified code below.
@BeppeRoncari
@BeppeRoncari Год назад
Hello, how can we do this now with flexbox containers, since Elementor does not support columns anymore? I just need to build a before-after slider, actually, but I seem to be unable to achieve that without any extra plugins. 🙂
@websquadron
@websquadron Год назад
You can still use Sections on a Container site, by copying over a Section. To make this work with Containers would require some effort from me to look into, and one day I will.
@Theotsi7
@Theotsi7 Год назад
I have an issue/question: I don't have Elementor Pro so I'm trying to follow all steps by adding HTML with the "" for CSS instead. Everything seemed to be working until the step where I have to put custom CSS to hide the Straight Text - it doesn't get hidden. Any tips?
@websquadron
@websquadron Год назад
Are you using class names to identify the right element. I recommend that you get Elementor
@Theotsi7
@Theotsi7 Год назад
@@websquadron I managed to pass through that problem, yes, thank you for the response anyway, I really appreciate it!
@Theotsi7
@Theotsi7 Год назад
@@websquadron subscribed!
@Madgiga
@Madgiga 9 месяцев назад
When tried this all went well when editing the section regarding the opacity , but when I preview the page the opacity turns to 0 even though the CSS is well inserted as you did , weird issue here, if you can help me. Thanks
@websquadron
@websquadron 9 месяцев назад
Are there any other settings overriding it? Did you add !important
@Madgiga
@Madgiga 9 месяцев назад
I think I don't have anything overrinding sice I did the page from scratch with your guidence. Where should I add !important?@@websquadron
@ajitjadhav9040
@ajitjadhav9040 Год назад
You are the one who would help me ... I had Normal accordion but I want the content blank for first for second I had content how to do it
@websquadron
@websquadron Год назад
You could leave it blank and add some code to leave it closed.
@ajitjadhav9040
@ajitjadhav9040 Год назад
@@websquadron yes but how to do it
@websquadron
@websquadron Год назад
@@ajitjadhav9040 See this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ycnDfUG1ZbI.html
@BMikel
@BMikel 10 месяцев назад
Can I create this using Elementor Free? I have skills in css and I can add css via custom css file in theme because i have access to wen hosting
@websquadron
@websquadron 10 месяцев назад
May be extra work for the accordion
@kellychoo1707
@kellychoo1707 Год назад
i tried adding a textbox in each container but the text keep shifting as in from 5 lines to 3 lines as the accordion opens up, is there any way to fix it so that the text does not keep shifting like that?
@websquadron
@websquadron Год назад
Is the text lengthy?
@kellychoo1707
@kellychoo1707 Год назад
@@websquadron yes it is, like a small paragraph almost
@jumes_20
@jumes_20 2 года назад
How can one adapt the css to function in the container environment?
@websquadron
@websquadron 2 года назад
I’ll be doing updated videos soon.
@arnaudgauthier990
@arnaudgauthier990 Год назад
and by the way the default state is not showing the overlay... on the preview. but it shows in the elementor editor... not sure why?
@websquadron
@websquadron Год назад
Have you got any optimisation enabled ?
@arnaudgauthier990
@arnaudgauthier990 Год назад
@@websquadron I got it to work... is there a way to make one of the window opened by default?
@arnaudgauthier990
@arnaudgauthier990 Год назад
I can see quite a few peeps asked you the same question 😉 if you find a way then great!!
@jesusenmanuelbarreto844
@jesusenmanuelbarreto844 2 года назад
Amazing! Loved it!. Just wondering how can I get horizontal columns instead of vertical columns effects on mobile?
@websquadron
@websquadron 2 года назад
Not tried it myself, but if the columns were made 100% on the mobile view, then maybe it might work.... maybe....
@jesusenmanuelbarreto844
@jesusenmanuelbarreto844 2 года назад
@@websquadron made it. thanks!
@websquadron
@websquadron 2 года назад
@@jesusenmanuelbarreto844 Yesssssss!!!!!! :)
@Waynot_
@Waynot_ 2 года назад
@@jesusenmanuelbarreto844 Hi ! can you share how you did it pls ? ty :)
@jesusenmanuelbarreto844
@jesusenmanuelbarreto844 2 года назад
@@Waynot_ absolutely i'll paste the code
@rjarboleda
@rjarboleda Год назад
It's not working for me. I followed it correctly and it works fine in edit mode but when I am in view mode it doesn't show correctly...
@websquadron
@websquadron Год назад
Could be due to optimisation plugins such as aggregated JS or any other css
@bymalpica
@bymalpica 2 года назад
Great design, awemoe result! When not hovered, shade is applied in backend but... it doesn´t work on frontend. Instead of that, I use .elementor-widget-wrap and then, shade is correct but text doesn´t appear. Any suggestion?
@websquadron
@websquadron 2 года назад
Hi. Difficult to assess without seeing what you have built.
@websquadron
@websquadron 2 года назад
@Fabian Köppe It’s odd because I don’t get that problem at all.
@bymalpica
@bymalpica 2 года назад
@@websquadron @Fabian Köppe it is kind of weird. Could I reach the same behaviour with the native background options in section? Any other proposal?
@websquadron
@websquadron 2 года назад
@@bymalpica Can I be so bold in asking you to email me info@websquadron.co.uk to have a quick look at your section? Or you could export as a JSON and email that to me?
@websquadron
@websquadron 2 года назад
@Fabian Köppe All you have to do is… Per Column, go to Style, and go to Background Overlay. Even though the Overlay is applied inside the CSS, still click paintbrush, and ensure the 0.5 value is deleted to be blank. Do that per column :)
@tareknnassar
@tareknnassar 9 месяцев назад
is there a way to have 1 column open by default, like an default active columns?
@websquadron
@websquadron 9 месяцев назад
Usually the first one
@tareknnassar
@tareknnassar 9 месяцев назад
@websquadron I mean how is it done?
@erolsoyturk4379
@erolsoyturk4379 9 месяцев назад
@@tareknnassar @websquadron im also wondering how to have one column open by default...
@SM.Touhid.Sultan
@SM.Touhid.Sultan 3 месяца назад
same thing can possible for Vertically as well?
@websquadron
@websquadron 3 месяца назад
See this alternative method; ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9VvR3rA0908.htmlfeature=shared
@SM.Touhid.Sultan
@SM.Touhid.Sultan 3 месяца назад
@@websquadron This is not what I am looking for. I am actually asking is it possible to do this effect from top to go bottom just like its doing left to right
@ittechthien
@ittechthien Год назад
cool job. Can you make it as slider when in mobile mode
@websquadron
@websquadron Год назад
I wouldn’t recommend due to sizing
@ecomebusiness8225
@ecomebusiness8225 2 года назад
I really liked the visual and everything works fine until I add some text, then everything goes to hell. Yet I followed everything in detail Don't know why ???
@websquadron
@websquadron 2 года назад
Adding Text Editor will cause the Columns to increase in height. Make sure that you: 1. Give it the Class Name = straightheader 2. Add this into the Custom CSS for the Text Editor: selector {white-space: nowrap;} selector h2{ pointer-events: none; } 3. And if you have long Text in there, then add to add returns. eg: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo. See the above at the end of Line 1 and 2 And it will be fine.
@ecomebusiness8225
@ecomebusiness8225 2 года назад
@@websquadron Hi Imran I know it's very late for you. I'm really sorry It works better than before but now the Rotate Header just appears halfway through. Please help
@websquadron
@websquadron 2 года назад
@@ecomebusiness8225 That could depend on how you’ve added it or which class it’s got. Difficult to assess without going into your site but we do charge for that. If you’d like us to go in then contact me on info@websquadron.co.uk - though please remember that it won’t be for free.
@ecomebusiness8225
@ecomebusiness8225 2 года назад
@@websquadron i know nothing in life is free
@ALYURA24
@ALYURA24 2 года назад
Tutorial Coraseoul Center mode please Crocoblock-advanced coraseoul
@websquadron
@websquadron 2 года назад
Thanks but we don't use Crocoblock.
@ALYURA24
@ALYURA24 2 года назад
Tutor elementor please
@websquadron
@websquadron 2 года назад
@@ALYURA24 can you clarify exactly what you’d like to see ?
@nurekerey
@nurekerey 4 месяца назад
You forgot to mention that custom css comes with the paid version
@websquadron
@websquadron 4 месяца назад
That’s because it’s mentioned in previous documents and online for EL and EL Pro.
@websquadron
@websquadron 4 месяца назад
Plus my cover art does indicate El Pro
Далее
The Liquid Accordion - Elementor PRO
11:18
Просмотров 32 тыс.
Turn anything into a SLIDER in Elementor (No Plugin)
18:00
Relume AI Website Builder | $3,000 an hour
19:59
Просмотров 353 тыс.
How to Create Entire Website with ChatGPT (No Coding)
15:15
МОЖЕТ ЛИ УКУСИТЬ СОБАКА
0:14
Просмотров 3 млн
Будни в пекарне. Часть 7
0:48
Просмотров 1,6 млн