Pronunciation: /ˈpɪksəl/, /ˈpɪksɛl/
Presents images with some transition effects (fx) so that I can improve my web development skills and learn new things.
The purpose is to improve my web development skills. I want to ...
- ... have fun
- ... learn new technologies, reflect and improve myself
- ... develop something i can be proud of
Learning through experience. Learning by doing.
Build a web slideshow application from scratch for my daughter using:
- HTML
- // TODO: SCSS/SASS as a pre-processor for the CSS wich animate the images
- JQuery to preload and show the slides
- Gulp as a task runner (gulpfile.js)
- JSHint to detect errors and potential problems in JavaScript code
- CSSLint to detect errors and potential problems in CSS code
- NPM for Node.js package management
Note: I'm using the beautiful free pictures found on Unsplash.
I use Gulp for the front-end development workflow, making it faster and more efficient. I automate different tasks such as:
- Injecting files that have to be referenced
- Linting code (showing warnings and errors in console window)
- Watching for changes in CSS, HTML and JS files
- Concatenating and minifying code
- Cropping and optimizing images
First of all the project root is NOT the webroot. The webroot is ./build/
.
Pixl consist of a PHP script images.php
that will scan the
folder ./images/
for JPG files and provide that sequence of images in JSON format
to a jQuery script script.js
to display it
in a slideshow. After each run, the list of images will be reloaded and shuffled.
The photographer is determined on the basis of the image name.
- Download or clone the Pixl github repository
- Run the
npm install
command - Upload the files from
./build/
folder to your Webserver
- Run the
gulp watch:images
command - Place some images into the folder
./source/uploads/
- Upload the files from
./build/images
folder to your Webserver webroot
- NPM is installed on your computer when you install Node.js
- Make sure ImageMagick is installed on your system
Fabian Dennler - Github
See the LICENSE file for details.
See the CHANGELOG file for details.