@mariusjopen Yeah, I can do some JQuery.
I want the color to change on every slide. Thanks!
extra-vitamins
Posts
-
Change background color with fade animation as you scrollJan 18, 2018, 3:07 AM -
Change background color with fade animation as you scrollJan 17, 2018, 12:53 AMI've set up the fullscreen slider add-on and I'd like to add some script so that as you scroll into each section the background color fades into a new color. I want the images to scroll as usual, though.
Example of fade effect here: https://concreterep.com/
Any hints of how to do this?
Thanks!
-
Show caption as tooltip on mouseoverDec 1, 2017, 8:53 PMFigured it out! Heres the script if anyone needs it:
<script>
jQuery(document).bind('mousemove', function(e){
jQuery(".caption").offset({left: e.pageX, top: e.pageY});
});
</script>and custom CSS:
.img:hover .caption {
display: block;
position: absolute;
}.caption {
display: none;
font-family: Slantbeta5;
font-size: 30px;
color: #17242c;
position: absolute;
z-index: 1000;
} -
Show caption as tooltip on mouseoverDec 1, 2017, 4:17 PM@mariusjopen Okay I'll give that a try, thanks!!
-
Show caption as tooltip on mouseoverNov 30, 2017, 11:40 PMI'd like to have the caption of each image show up as a tooltip that follows the mouse on mouseover. I got this script working in another app but I can't get it to integrate with laytheme/wordpress.
Here's what I have so far:
<script>
var tooltip = document.querySelectorAll('.caption');document.addEventListener('mousemove', fn, false);
function fn(e) {
for (var i=tooltip.length; i--;) {
tooltip[i].style.left = e.pageX + 'px';
tooltip[i].style.top = e.pageY + 'px';
}
}
</script>AND this in the CSS:
.img:hover .caption {
display: block;
}.caption {
display: none;
font-family: Slantbeta5;
font-size: 30px;
color: #17242c;
padding: 10px;
position: absolute;
z-index: 1000;
left: 50%;
-webkit-transform: translateX(-50%);
}The page is http://extra-vitamins.com/play
Thanks!
-
Vertical Split Background ColorsOct 11, 2017, 6:43 PM- Okay, cool. That's what I did originally but I wasn't sure if it was maybe cleaner/faster to code it...
- I've just been learning when things come up. Not sure I can figure this one out on my own.
-
Vertical Split Background ColorsOct 11, 2017, 12:38 AMHey there!
I have two questions:- How can I make the background color of a page two colors split vertically (ex: left half red, right half blue, split in the middle)?
- Is there any way I could also integrate the random color script from this thread: http://laythemeforum.com:4567/topic/674/random-color-background
So that every time you refresh the page, each half is a different color?
Thanks!
-
issues with linking to an anchor tagApr 6, 2017, 12:55 AMhi armin!
I've created a long scrolling website and I'd like to create links that take you to a certain part of the page so that I can reference specific projects in an external document. I've added some ids to specific images on the page but when I try to create a link to the anchor it's not working.
This is my website - www.extra-vitamins.com
Some of the ids I made are tennis, extra, and glyph
This is the type of link I'm trying to make -
http://extra-vitamins.com/category/work.html#tennis
But it always just brings me to the top of the page, not the specific image/project.Thanks for your time!
-
Carousel - Text Slide Background ColorFeb 21, 2017, 3:42 PM@arminunruh That worked great, thank you!!
-
Carousel - Text Slide Background ColorFeb 17, 2017, 12:12 AMRe: Carousel : Style Text Slides?
Hi @arminunruh,
I was wondering if there's a way to change the background color of text slides so that each carousel has a different text slide color. The code from the thread above seems to work if I want all the text slides to be the same color, but is there a way to target specific slides so that they can be all different colors?
Love the theme by the way :)
Thanks!
Need custom programming for your Lay Theme site?
I regularly add new features to Lay Theme for free, based on user feedback. But if you or your client need something more specific, I’m happy to offer custom paid programming tailored to your project.
Email info@laytheme.com with the subject "Custom paid programming for Lay Theme" and a short description of what you need — I’ll reply with a cost estimate.
Custom features I build often make it into future Lay Theme updates, so your idea might benefit the whole community.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it