Tagged: color section, diagonal, enfold
-
AuthorPosts
-
December 20, 2019 at 5:55 pm #1168240
Good Morning All,
I am trying to create a page flow where the color sectional diagonal is both at the top and bottom of an image. I have tried many different ways after looking thru the documentation but still no luck. Can you please help me?
I want to mimic this style: https://drive.google.com/file/d/157yy701xSLjsKsg4AUocnKFa2bgZxrHR/view?usp=sharing
Thanks in advance!
~AmandaDecember 21, 2019 at 3:38 pm #1168447Hey amanda-mdllc,
Our diagonal sections do not have alternating borders for top and bottom yet, unfortunately. You might want to rethink the design.
Best regards,
VictoriaNovember 25, 2020 at 12:09 am #1262846Hello
Did you find a solution for this one ?
It is annoying when you want to add a diagonal effect but the next color section’s image set as a background has a straight top border ! which makes it useless !There must be a way to have a diagonal border for the TOP of the second color section and not only to the bottom of it !
Any workaround this ?
November 30, 2020 at 4:02 am #1263857Hi,
Sorry for the late reply, unfortunately, this is not an option in the theme yet, but couldn’t you just add a diagonal border to the bottom of the first section, which would be the same as adding it to the top of the second section?
The only other option I can think of is to search Google for some css that will create the effect you wish for.Best regards,
MikeDecember 1, 2020 at 2:03 am #1264091Hi Mike
Unfortunately no it is not the same thing
A Diagonal border on the bottom of the color section overlays the background of that specific color section
However, the diagonal border on the top of the color section would overlay that color sectionSee attached of what i want to reach
bottom photo when in parallax it goes beneath the diagonal borderDecember 1, 2020 at 3:23 pm #1264251Hi,
I don’t believe that parallax with work with a diagonal border, especially with IOS. But that aside I can see your point, I was able to achieve this with some custom classes and a little jQuery:
In this example, all color sections are set to 100% visual height and the middle color section is the target so it has the bottom diagonal border and it has the custom classtarget-flipped-diagonal-border
.
Now we will add a bottom diagonal border to the section above, this will be our fake top diagonal border, and we will add the custom classflipped-diagonal-border
to it.
This is the code you can add to the end of your functions.php file in Appearance > Editor:function custom_flipped_diagonal_border_script() { ?> <script> (function($) { $(document).ready(function(){ $('.flipped-diagonal-border .av-extra-border-element').css({'transform':'rotate(180deg) scaleX(-1)','margin-top':'0px'}); $('.target-flipped-diagonal-border').css({'margin-top':'-250px'}); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_flipped_diagonal_border_script');
Now the middle section has two diagonal borders over it, top & bottom.
Best regards,
MikeDecember 3, 2020 at 1:05 am #1264592@Mike !! YOU ARE A GENIUS !
I thank you very much . it worked and i am so happy about it
Many thanks :)I have a question…
Is there a way to cancel the option of scrolling down the page, but instead forcing people to click on the arrows that are provided by the Color Section ?
In other words, can the end of one color section be the end of the page, (no more scrolling) but by clicking on the arrows down, the user can jump to the next color section, which will be the end of the page, and so on …
This is just an idea (not looking to reach the exact same, but this one forces a full page view without the ability to scroll through the pages. It gives a direct jump effect to the next section https://fueled.com/Is this simply an advanced layered slider ? or does it have to do with Parallax effect ?
Thanks !
- This reply was modified 4 years ago by Cloudypro.
December 3, 2020 at 12:39 pm #1264745Hi,
Glad to hear this worked for you, we should close this old thread now.
I’m not sure how the other site achieves this effect, it looks like javascript.Best regards,
MikeDecember 4, 2020 at 12:55 am #1264900Thank you Mike
December 4, 2020 at 1:18 am #1264902December 4, 2020 at 2:05 pm #1265009 -
AuthorPosts
- You must be logged in to reply to this topic.