Jump to content

Archived

This topic is now archived and is closed to further replies.

atcdomainsolutions

Parallax Image Issue. Shows Part Of Bottom Of Image

Recommended Posts

atcdomainsolutions+    63
atcdomainsolutions

Have a client who really loves the evernote.com website SO I decided to just play with it and create a mock-up/clone of the site to show them and add a parallax effect below the main area. (No, I won't be using this as a final site since I don't rip off existing sites like that...haha!  Just doing this to kinda surprise the client)...Anyhow, this is the first time I have tried playing with the parallax for an actual project and the first two times, I never really looked up documentation on it.  Well, I have looked things up and can't seem to figure out how to make this work. 

 

I read something on another post and James (guy who owns usingpagelines.com) said that you should make the image significantly taller than the section area it's in.  Well, my section area height is 700px right now (tried 800, 900, etc) and the image I'm using is 2800px hight and it still crops and shows part of the image up top before the main image slides over it.  I'm assuming this is definitely not how it's supposed to work so just wondering if anyone has had success getting the build in parallax to function properly?  Really would love to incorporate it into some upcoming jobs.

 

The domain I own that I added this to is at http://atcfitnessandweightloss.com/.  Once you scroll down past the green area, you see the image I uploaded and how it's showing a part of the bottom portion of the picture up top.

 

Thanks!

Share this post


Link to post
Share on other sites
Rob    547
Rob

I've asked James G to chime in. He's a great guy and I'm sure he'll shed some light on this.

 

I'm aching to find out myself!

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
James Giroux+    2
James Giroux

Hey!  Thanks for posting.  The issue is related to the size of your navbar.  The parallax feature that's built in makes an assumption that your navbar is the same height as the default when it makes its calculations.  If you edit the size of the navbar (which both you and I do a lot) it doesn't know how to compensate and that's why your image does what it does.  

 

If you're comfortable enough with the JS to jump in and sort it out yourself, that's the way to go (I don't actually know where or how to edit this...yet) or if you're looking for a really quick fix I would recommend picking up Depth Charge from the store.  It's what I use on Using PageLines and does all the correcting for the size of the navbar (I worked with the developer to specifically make sure this was the case).  It also takes parallax to the next level in terms of what you can do with it.  

 

Anyway, that's the reason WHY the parallax is doing what it's doing but as to solving it, without jumping into the code, I don't know that there's much you can do.

 

Thanks again for writing!

 

James.

  • Like 1

James Giroux, CEO
Groundwork

Share this post


Link to post
Share on other sites
atcdomainsolutions+    63
atcdomainsolutions
Rob/James

Thanks for the feedback! That at least gives me an idea of what is going on!

James

Share this post


Link to post
Share on other sites
rmaxsg    7
rmaxsg

Man @atcdomainsolutions you did a great job.  How long did you take to do something like that?  Kinda confusion which is real site of Evernote :D

  • Like 1

Share this post


Link to post
Share on other sites
atcdomainsolutions+    63
atcdomainsolutions

Man @atcdomainsolutions you did a great job.  How long did you take to do something like that?  Kinda confusion which is real site of Evernote :D

rmaxsg

 

Thanks!  It took me about 45 minutes to do this one.  Just wanted to get something up pretty quick.  Funny since the part that challenged a bit was editing the "Join Us" blue button.  The default iCallout button is pretty large so I had to play with the CSS to get it to mimic Evernote's as much as possible.

Share this post


Link to post
Share on other sites
rmaxsg    7
rmaxsg

Oh my god. that way faster than me. i will need a day or almost 6 hours to do something like yours.   Good job.  Where did you learn thoughs skill.  Have any tips for me?

  • Like 1

Share this post


Link to post
Share on other sites
webmatros    1
webmatros

James, couldn't the problem simply be solved if the section area background images were vertically centered, instead of top-aligned?

 

Regardless of the parallax effect, I'd like the background images to be vertically centered. The focus of most images are in the center of the image.

Share this post


Link to post
Share on other sites
atcdomainsolutions+    63
atcdomainsolutions

Oh my god. that way faster than me. i will need a day or almost 6 hours to do something like yours.   Good job.  Where did you learn thoughs skill.  Have any tips for me?

Honestly, I never had any training. Tons of hands on time playing with code and templates. I also started keeping an on going Word doc with tricks and tips I learned from just practice and practice... It's almost at 90 pages now... Haha.

Oh my god. that way faster than me. i will need a day or almost 6 hours to do something like yours.   Good job.  Where did you learn thoughs skill.  Have any tips for me?

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus

KInda goofey that an adjustable NAvbar height would cause this. Seems like a design flaw. 

 

I've ben attampting Custom CSS fixes, but so far with no luck. Has anyone figured out how to override that backgroung-image style so the image does not repeat at the top of the div?

 

Thanks,

Mike

Share this post


Link to post
Share on other sites
TourKick (Clifford P)    1
TourKick (Clifford P)
@atcdomainsolutions: that's what Evernote is for! lol

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×