Background image scrolling issue

Permalink Browser Info Environment
Hi, I'm having trouble with the scrolling behavior on the full page background of the template. It is showing the background image on repeat when you scroll down. I am using Firefox, but the Express demo site works fine in the same browser. I've tried making the header size smaller in the css, but that doesn't work, something to do with the way the scrolling works. You can take a look at it here:http://www.perceptivecreative.net/2016/...

Also, the background image starts out right aligned, and then jumps to the middle once you start scrolling. It is disconcerting. I haven't done anything to the theme other than install, then upload a background image and add some text.

Coming back to this template after deciding not to use it last year because of these problems. But, I thought I would give support a try.

Type: Pre-Sale
Status: In Progress
perceptivecreative
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi, thanks for your message.

I checked that URL provided and it comes up with a 404 error. Has that address changed?

It's possible the background image you're using is too small or another add-on on the page could be interfering with it. Once you can provide a public URL I can see and replicate the issue I'll be able to help you get to the bottom of it.

JB
perceptivecreative replied on at Permalink Reply
perceptivecreative
Ok, the link is working now. I have no idea why it wasn't working before! Probably a problem with my host or something.

www.www.perceptivecreative.net/2016...
perceptivecreative replied on at Permalink Reply
perceptivecreative
Oh, the background image is the size recommended in your help files. 2600x900. I haven't installed any add-ons. this is a fresh C5 install.
jb1 replied on at Permalink Reply
jb1
Thanks for those details. To go through the points raised:

1) Regarding the "jumping" of the background image, I can replicate. I haven't seen that behaviour before. But a quick fix is looking in the main.css file of the theme and add after this line to force the background position to be the same on the initial page load as when the parallax effect is working:
#header_container{
background-position:center 0px;


2) For the background repeat, use the same section of CSS code (within #header_container) and add in:
background-repeat:no-repeat;


Let me know how you go with that.

JB
perceptivecreative replied on at Permalink Reply
perceptivecreative
Ok, the background isn't jumping anymore, thanks for that. However, the image ends before the text disappears (it is only by a few pixels, but noticeable if you look closely as the scrolling behavior happens). So there's something else going on. Is there a way to make the text disappear faster?
perceptivecreative replied on at Permalink Reply
perceptivecreative
Also, on the demo site it looks like the white main content area is coming up over the image, but you don't get the same effect on my site. So there's something wrong :(
jb1 replied on at Permalink Reply
jb1
Apologies for the delay, I've been travelling the last few days with limited wifi access.

It looks like your background image is 371px high (http://www.perceptivecreative.net/2016/files/4214/7113/8590/homepage_artwork.jpg)

The demo on mysite (http://themes.c5extras.com/packages/jb_express/themes/jb_express/images/express_bg.jpg) is 466px. So I'd suggest doing that. Also your image is much wider - try the same width as my demo (700px) and then I'd suggest if you want something higher resolution not to go past 1000px wide.

Let me know how that goes.

JB
perceptivecreative replied on at Permalink Reply
perceptivecreative
I fixed it.

#header_container {
height: 900px;
/* customize_header_background_color */ background-color:#ffffff; /* customize_header_background_color */
overflow: hidden;
background-size: cover;
background-position:center 0px;
background-repeat:no-repeat;
background-attachment: fixed;

I added background-attachment:fixed; to the #header_container id. It was there for the white template, but not for the others. I didn't know that the white template would show a background image, but I tested it and it does. So, cheers, everything works!

Hope this helps someone else down the road. Thanks for your support! I'll try it with larger images now that I know that was the issue.
jb1 replied on at Permalink Reply
jb1
Ah, so glad you got it. That makes sense.

Thanks for sharing the code snippet.

Have a great weekend.

JB

concrete5 Environment Information

# concrete5 Version
5.6.3.4

# concrete5 Packages
Express (1.7.0).

# concrete5 Overrides
languages/fi_FI, languages/tr_TR, languages/ja_JP, languages/pl_PL, languages/pt_PT, languages/sk_SK, languages/es_ES, languages/ro_RO, languages/fr_FR, languages/da_DK, languages/el_GR, languages/nb_NO, languages/it_IT, languages/ru_RU, languages/es_PE, languages/sv_SE, languages/ar, languages/pt_BR, languages/vi_VN, languages/sl_SI, languages/es_MX, languages/cs_CZ, languages/es_AR, languages/fa_IR, languages/de_DE, languages/nl_NL, languages/zh_TW, themes/jb_express

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.24

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, htscanner, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 4000
memory_limit - 512M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.