Picture of kevin kopochis
Parallax effects
by kevin kopochis - Monday, 27 April 2015, 3:55 PM
 

Are there any existing plugins/extensions that could add some parallax effects to adapt? If not, how would I go about creating something to add some of the effects similar to those used in skrollr?

Paul Welch
Re: Parallax effects
by Paul Welch - Tuesday, 28 April 2015, 8:13 AM
 

Hi Kevin,

You could take a look at the graphical background switcher that can be found here: https://github.com/cgkineo/adapt-background-switcher

Might offer what you need. 

Thanks,
Paul 

 

 

 

 

Picture of Stuart Marshall
Re: Parallax effects
by Stuart Marshall - Thursday, 10 September 2015, 9:05 PM
 

Hi Paul,

Do you know if this switcher should work with the latest version of the framework? I got an error when trying to install.

Many thanks,
Stuart

Paul Welch
Re: Parallax effects
by Paul Welch - Friday, 11 September 2015, 1:27 PM
 

Hi Stuart, 

Yes, we’ve tested B/Switcher against v2 of the framework.

Can I ask how you're trying to install? I’m not a techie but I think you need to go to the CG Kineo repo, unzip the plugin and then manually copy it into the extensions folder. If that doesn’t work I’m sure one of our tech consultants can advise.


Best,

Paul

Picture of Stuart Marshall
Re: Parallax effects
by Stuart Marshall - Friday, 11 September 2015, 2:16 PM
 

Hi Paul,

Thanks for your reply. Ok - i'll try installing it that way.

I tried to do it from the command line but it came up with a message saying it wasn't compatible with v2 of the framework but gave me the option to try installing anyway, which i did, but it then threw an error.

Thanks again,

Stuart

Picture of Matt Leathes
Re: Parallax effects
by Matt Leathes - Friday, 11 September 2015, 3:04 PM
 

Hi Stuart

I'm 99% certain it is v2 compatible. The error you're getting is probably just down to the file bower.json not having been updated to reflect that it is v2 compatible.

As Paul quite right suggests, manually copying it to your extensions folder should work.

Picture of Stuart Marshall
Re: Parallax effects
by Stuart Marshall - Saturday, 12 September 2015, 10:20 PM
 

Hi Matt/Paul,

Thanks for the advice. I managed to get it added and (largely) working - the transitions aren't particularly smooth and the background image doesn't seem to switch back when i scroll back up the page so i'll need to have a play about with it and see what is what. Is great though - many thanks for sharing it.

Stuart

p.s. how are themes installed? i tried to install the adapt-kineo-theme but it wouldn't work using command line or by copying into the theme folder. is it just a case of copying and then updating a value in one or more of the json files to point to the new theme?

Picture of Oscar Arango
Re: Parallax effects
by Oscar Arango - Tuesday, 15 September 2015, 6:07 PM
 

Hi Stuart,

Any chance you can provide the path to the folder where I can manually install?  I'm using the authoring tool and I'm not sure if I should be adding this to the extension folder in the temp folder or if there's another location.

thanks in advanced.

Picture of Stuart Marshall
Re: Parallax effects
by Stuart Marshall - Tuesday, 15 September 2015, 7:52 PM
 

Hi,

I don't have/use the authoring tool so don't know what the folder/file structure is like for that (or if/how third party extensions can be installed).

Using the framework the extensions folder is in the 'src' folder of the root course folder.

Stuart

Picture of Cormac O'Keeffe
Re: Parallax effects
by Cormac O'Keeffe - Monday, 5 September 2016, 4:13 PM
 

Hi, 

For anyone using the framework and not sure how to install extensions manually, here's a guide. 

Mike's extension works really well (and avoids the tiling or scaling issue with other background image options). 

If you would like to install it manually, here's one way of doing it. 

  1. Fire up your command line tool (I used Terminal on OSX).
  2. cd my-adapt-course/src/extensions/
  3. git clone https://github.com/mike-st/parallax-background-switcher.git

This'll clone the repository into your extensions folder. You should then delete the hidden git folder:

  1. cd parallax-background-switcher
  2. rm -rf .git

You'll then need to check your dependencies by navigating to your 'adapt.json' file. Type cd.. (then Enter) twice to go back up to your "src" directory. 

  1. cd ..
  2. cd ..
  3. open adapt.json

Check that you have this line: 

"adapt-parallax-background-switcher": "*"

If you'd tried installing it with the $ adapt install command then chances are it's already there even if it said that you can't install it. If not, copy and paste it taking care to add a comma at the end if it's the last dependency in the list.

Then add the JSON as per the example.json file and it should be apples. 

 

 

All the best, 

 

Cormac

 

 

Picture of Mike Stevens
Re: Parallax effects
by Mike Stevens - Friday, 2 September 2016, 3:13 PM
 

Hi I have made a parallax background switcher extension that works similar to cgkineo background switcher except you can choose if you want to use the original animation transition or use a parallax background effect instead on your page. Here is a link to the extension if anyone is interested in trying it out. Works with the authoring tool or the dev framework...

https://github.com/mike-st/parallax-background-switcher

 

Picture of Stephen Harlow
Re: Parallax effects
by Stephen Harlow - Sunday, 4 September 2016, 11:01 PM
 

Cheers Mike, this is great. I've installed it in my Authoring Tool (v0.1.7) running in a Vagrant VM with Framework v2.0.10 and it works as advertised. This should make it easier for people to create Adapt pages similar to those in Kineo Pacific's ASADA/DrugFreeSportNZ Anti-doping course using just the Authoring Tool.

Picture of Cormac O'Keeffe
Re: Parallax effects
by Cormac O'Keeffe - Monday, 5 September 2016, 4:13 PM
 

Hi Mike, 

Thanks for sharing this, it's really very good. 

All the best, 

Cormac

Picture of Mike Stevens
Re: Parallax effects
by Mike Stevens - Tuesday, 6 September 2016, 2:42 PM
 

Thanks so much! Really appreciate it. I had fun building it off of the Background switcher. It was my first attempt to build a component, though I realize it was not from scratch. I should mention, I made a fix to the backgrounds on the iOS version as the parallax effect was choking in that environment, so I thought it safer to make the BG's static similar to the original bg switcher.

Picture of Cormac O'Keeffe
Re: Parallax effects
by Cormac O'Keeffe - Monday, 7 November 2016, 8:57 AM
 

Hi Mike, 

Thanks again for the parallax switcher. 

I've  noticed that when it's activated, it affects the 'retry' button for the assessment components. That is, when the button is pressed, it returns a blank page - when the page is reloaded it works fine, but it's an odd little glitch. 

Would you have any ideas on why that might be?

All the best,

 

Cormac