Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-parallaximage-bundle
A bundle to add parallax background images to articles.
https://github.com/heimrichhannot/contao-parallaximage-bundle
Last synced: about 1 month ago
JSON representation
A bundle to add parallax background images to articles.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-parallaximage-bundle
- Owner: heimrichhannot
- License: other
- Created: 2018-10-08T14:22:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T14:11:01.000Z (over 2 years ago)
- Last Synced: 2024-09-29T23:45:46.328Z (3 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Contao Parallax Image Bundle
A bundle to add parallax background images to articles.
## Features
* Uses the lightweight and vanilla js library [Rellax](https://github.com/dixonandmoe/rellax) for parallax effect.
* Webpack / Encore / [Encore Bundle](https://github.com/heimrichhannot/contao-encore-bundle) integration## Usage
### Installation
```
composer require heimrichhannot/contao-parallaximage-bundle
```You need to update the database after composer installation
If you don't use Webpack/Encore/Encore-bundle at all:
* you need to add rellax library by yourself, as it don't comes with this bundleIf you don't use [Foxy](https://github.com/heimrichhannot/contao-encore-bundle/blob/master/docs/introductions/bundles_with_webpack.md):
* add rellax to your bundle package.jsonIf you don't use Encore bundle:
* add `./vendor/heimrichhannot/contao-parallaximage-bundle/src/Resources/assets/js/contaoParallaxImageBundle.es6.js` to your packages and require it, where you need it
* we recommend to unset the assets entires by yourself to don't have doublicatesWith encore bundle:
* Activate ContaParallaxImageBundle entry within encore section in your page structure for the pages, where you want parallax effect or in your page root.### Add parallax image
You find the options to add an parallax background image in article settings.
**Attention:** If you choose to add a parallax background image, the default article template is switched to an customized article template. If you selected an custom template, it won't be overwritten, so you need to update your custom template or switch to the default one.