Creative Column 1 - Additional Customization

Hi,

I wanted to use the creative column functionality you have on the youtube video with a slight twist. The video and the conversation with Themeco is here:

What I’m Looking For

  • column displays with the border #068dc8.
  • When hovering, the transform happens (no border) and then intantly scales back up (as if its not being hovered over) but is #29af82.

Once the transform happens the original blue border fades and reappears as the green.

I hope I’m not asking too much!

Love the new video archive and everything you folks do. Much Appreciated.

The Reply From Themeco (Not Working)

  1. Add a class to the column. In our example code, we use ‘creative-column’.
  2. Then in the gist below, add the code in the first JS snippet to the JS panel in the builder.
  3. Then add the code from the CSS snippet to the Element CSS for the column.
  4. Optionally, if you want the border to switch back and forth between the different colors on hover, add the last JS snippet to the JS panel too.

Here’s a link to the code you’ll need: https://gist.github.com/dontcallmemark/98fd08b43a6413232ebe8ac13eee3894

Hopefully, that will give you exactly what you’re looking for, but if you need further help, open up a thread in our support forum referencing this conversation here, and we’ll assist further. It’ll be a little easier to explore this with you there as we can add screenshots etc.


Not sure I’m missing something here… Should I be using the original CSS with the code you provided, or just the code you told me to in the last reply on the youtube comments? Just to let you know, either of those worked for me.

Thanks for you help, I hope we can get this to work.

Cheers,
Jonathan

Hi Jonathan,

Thank you for writing in, regretfully what you have in mind is not possible with CSS only, because the transform: scaleX(0); on hover will hide the border, we can change the color to #29af82 on hover, but it would not matter because now the border is not visible.

We can not apply a hide and show event on :hover, its either we change the color on :hover

$el:hover .border__vertical, 
$el:hover .border__horizontal {
	border-color: #29af82;
}

or hide the border on hover

$el:hover .border__horizontal {
-webkit-transform: scaleX(0);
transform: scaleX(0);
}  

$el:hover .border__vertical {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}

You might want to check out the .mouseover() jQuery function instead.

Cheers!

Hi,

I was told on the Youtube video comments that this was possible.

All I’m looking for is exactly what happens in the video with a blue border, then once the border scales to 0 to scale back up again but it to be green instead and then stay that way as long as the mouse is over it.

The js that was provided had a mouse over option. I’ve copied all the code that was given to me here. Here is the thread and code:

BlockquoteAh ok, well in that case, it gets a little more complicated, but it’s still achievable. Here’s what you’ll need to do:

  1. Add a class to the column. In our example code, we use ‘creative-column’.
  2. Then in the gist below, add the code in the first JS snippet to the JS panel in the builder.
  3. Then add the code from the CSS snippet to the Element CSS for the column.
  4. Optionally, if you want the border to switch back and forth between the different colors on hover, add the last JS snippet to the JS panel too.

Here’s a link to the code you’ll need: https://gist.github.com/dontcallmemark/98fd08b43a6413232ebe8ac13eee3894

Hopefully, that will give you exactly what you’re looking for, but if you need further help, open up a thread in our support forum referencing this conversation here, and we’ll assist further. It’ll be a little easier to explore this with you there as we can add screenshots etc.

Blockquote

(function($){
$(".creative-column").on({
mouseleave: function () {
$(this).addClass(‘hovered’);
}
});
})(jQuery);

$el.hovered .border__horizontal,
$el.hovered .border__vertical{
border-top-color: #9da7db;
border-right-color: #9da7db;
border-bottom-color: #9da7db;
border-left-color: #9da7db;
}

(function($){
$(".creative-column").on({
mouseleave: function () {
$(this).toggleClass(‘hovered’);
}
});
})(jQuery);

I hope this helps and we can achieve the look I’m going for. I really appreciate those who have replied and tried to help, you all awesome!!!

Cheers,
Jonathan

Hello Jonathan,

Please use this original css with your desired border color:


$el .border__horizontal,
$el .border__vertical {
  position: absolute;
  transition: transform .8s ease, -webkit-transform .8s ease;
}

$el .border__horizontal {
  border-top: 2px solid #068dc8;
  border-bottom: 2px solid #068dc8;

top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
}

$el .border__vertical {
  border-left: 2px solid #068dc8;
  border-right: 2px solid #068dc8;  

  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
}

$el .border__horizontal::before, 
$el .border__vertical::before {
  content: '';
  position: inherit;
  border: inherit;
}

$el .border__horizontal::before {
  top: -12px;
  bottom: -12px;
  left: 10px;
  right: 10px;
}

$el .border__vertical::before {
  top: 10px;
  bottom: 10px;
  left: -12px;
  right: -12px;
}

$el:hover .border__horizontal {
-webkit-transform: scaleX(0);
transform: scaleX(0);
}  

$el:hover .border__vertical {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}

And then you’ll need to add this so that the border color will change when you hover it.

$el:hover .border__horizontal,
$el:hover .border__vertical {
  border-color: #29af82;
  transition: border .8s ease;
}

If nothing is working, please provide us the url of the page where you have applied the codes so that we can inspect it.

Thanks.

Hey Jonathan,

You seem to forget the url of your site. Please send us the url since we do not have a clue which url associated with your licenses you have added the creative column effect.

Thanks.

Hi RueNel,

Sorry about that. I have updated the note above with the details.

Cheers,
Jonathan

Hey Jonathan,

Please double the WP credentials. It is not working for us at the moment.

Thanks.

Hi RueNel,

You should be good to go now.

Thanks,
Jonathan

Hello Jonathan,

The WP credentials still do not work.

Please double check.

Hi RueNel,

Forgive me for being a total idiot… I was giving you the credentials to login to the local site I have running LMAO…

Please go ahead and try logging in again with the same credentials. I’ve setup the page on the current production site for you to play around with. Let me know what you find…

Again, please use the Inbound Marketing page.

Cheers,
Jonathan

Hey Jonathan,

Did you change the login URL? I tried going to using /pdm-admin, /wp-admin, /wp-login.php, /login, /admin and they only redirect to your home page.

I’m also not 100% sure about what you need so please watch the quick video I’ve recorded below if that is the correct recreation of your description.

Not sure if you could see the change in color as #068dc8 and #29af82 are very close but it changes.

If that is what you need, my solution might not be the best but it’s simple. It’s the same as the original technique of adding Content Area elements. You add additional Content Areas and just reversing the effect or animation. This way also, you can easily change the speed of the colors separately. Here are the steps.

  1. Add 2 additional Content Area elements
  2. Assign border__horizontal_hover class to the 1st additional column and border__vertical_hover to the 2nd additional column so you’re just replicating the steps in the original Creative Columns 1 video.\
  3. Replace all of the CSS with the following:
$el .border__horizontal,
$el .border__vertical {
  position: absolute;
  transition: transform .8s ease, -webkit-transform .8s ease;
}

$el .border__horizontal {
  border-top: 2px solid #068dc8;
  border-bottom: 2px solid #068dc8;

top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
}

$el .border__vertical {
  border-left: 2px solid #068dc8;
  border-right: 2px solid #068dc8;  

  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
}

$el .border__horizontal::before, 
$el .border__vertical::before {
  content: '';
  position: inherit;
  border: inherit;
}

$el .border__horizontal::before {
  top: -12px;
  bottom: -12px;
  left: 10px;
  right: 10px;
}

$el .border__vertical::before {
  top: 10px;
  bottom: 10px;
  left: -12px;
  right: -12px;
}

$el:hover .border__horizontal {
-webkit-transform: scaleX(0);
transform: scaleX(0);
}  

$el:hover .border__vertical {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}

/* Reverse Content Areas */

$el .border__horizontal_hover,
$el .border__vertical_hover {
  position: absolute;
  transition: transform .8s ease, -webkit-transform .8s ease;
}

$el .border__horizontal_hover {
-webkit-transform: scaleX(0);
transform: scaleX(0);
}  

$el .border__vertical_hover {
-webkit-transform: scaleY(0);
transform: scaleY(0);
}


$el .border__horizontal_hover {
  border-top: 2px solid #29af82;
  border-bottom: 2px solid #29af82;

top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
}

$el .border__vertical_hover {
  border-left: 2px solid #29af82;
  border-right: 2px solid #29af82;  

  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
}

$el .border__horizontal_hover::before, 
$el .border__vertical_hover::before {
  content: '';
  position: inherit;
  border: inherit;
}

$el .border__horizontal_hover::before {
  top: -12px;
  bottom: -12px;
  left: 10px;
  right: 10px;
}

$el .border__vertical_hover::before {
  top: 10px;
  bottom: 10px;
  left: -12px;
  right: -12px;
}

$el:hover .border__horizontal_hover {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}  

$el:hover .border__vertical_hover {
-webkit-transform: scaleY(1);
transform: scaleY(1);
}

If you read the code above, you’ll see this CSS comment /* Reverse Content Areas */. That’s the start of the CSS for the additional columns and the reverse effect. The key there is the additional columns starts as hidden or scale 0 and hovering on the column they get scaled to 1.

-----------------------------------------------------------------------------------

If that doesn’t help, please update us with the correct login URL and maybe a series of screenshots of what you want to achieve.

Thanks.

Hi Christian,

Thanks, this is exactly what I was looking for and is working perfectly.

Very much appreciated!

Hi Jonathan,

You’re welcome!
We’re glad @Christian were able to help you out.

Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.