9-Projects Style
Key Objectives
To start to stylize the projects section.
To add basic animations and effects to our project.
Video
Part1
Part2
Overview
In this module, we start to refactor or stub out code in the projects section. In our example project, we add some basic animation to the projects section. It is not required that you add animations to your portfolio, but it's good to know how to do it. In modern front end development, it's a skill that you will need to have. We also do some more additions to our gulpfile.js for minification. Minification allows us to streamline the whitespace out of our code, which makes the app faster in the end. When we run gulp dev, minification happens.
Notes/Tips
This is an open-ended task, and it gets hard to identify when you are done. We recommend timeboxing your work. Set a designated time and quit. Do a little animation and move on.
Having good ideas is great, but it's also ok to just explore. Just like any other creative endeavor, ideas will often come after the first try and after you come back to it later.
Don't be afraid to throw out entire ideas. If it's not working, sometimes you just chuck it.
It can take many attempts to get animations and stylistic things looking nice and how you want them. Don't be discouraged if you don't get it the first time.
Steps
This module has two parts for the videos.
Go to the
module-8-portfolio-styling-starterbranch.Open your terminal window and do
git pull. This will make sure that you have the most up-to-date version of our code from GitHub. If you started this project early on, we might have made updates to this module.While you have the terminal open, run
npm install. This will update the animation dependencies that are needed. If you get the dreaded error that says 'run as root administrator', close down VS Code and reopen it. Runnpm installagain. That should fix it.Add the ability to minify your code with a single gulp command, as explained in the video. You also want to be able to run
gulp devand have the code minify any new changes to your JavaScript files.To add wowjs or animate.css to your project, you'll need to do an
npm installfor both of those. Read the docs for each one to figure that out.After looking at the example app, start to stylize your own portfolio/projects section. Play around with
animation.cssandwowjs. See what you think. These are great tools to know.When you get your projects section to a satisfactory place and gulp is doing proper minification, go ahead and move on to the next module.
Here is the finished code.
gulpfile.jsindex.html<head><nav><header>Portfolio SectionAdd Comment blocks for
AboutContactFooterandModals SectionsScripts Sectionmain.jspackage.json_body.scss_portfolio.scss
Last updated