Curriculum Gallery Page Design with Sass-Scss using gifs and hyperlinks

in #utopian-io6 years ago


Repository

https://github.com/sass/sass

What Will I Learn?

  • You will learn how to create a gif control on hover without JavaScript.
  • You will learn how to position images with top and left spacesindividually.
  • You will learn how to create an animation with z-index and rotate() functions
  • You will learn how to use style a hyperlink and use text-decoration function on it and also target="blank" on html side.
  • You will learn how to combine codes while creating a project.
  • You will learn how to use opacity code and create nice effects.
  • You will learn fine-tuning at the end of your projects.

Requirements

  • Any text editor. (Brackets, Atom, Notepad++)
  • Basic HTML knowledge
  • Basic SCSS code knowledge
  • SASS installed.
  • Local server (Wampserver)
  • Any browser

Resources

Difficulty

  • Intermediate

Description

In this tutorial we will create with sass scss an animated and rotated curriculum gallery page with gifs. This effect can be used on photo galleries mostly. If you follow this tutorial download all files from my github page and change your images, gifs texts or color. Try to define image positions self to learn better and also rotate with different values. You can use comment mark(/*between these marks*/) to deactivate codes and test it. With this way it will be more useful for you and you can test and understand the codes better.


1- Before you start be sure that you run our sass code in the directory of site files. Our command is sass --watch sass:css. It will translate all codes that you write in scss file to css file. After that, write a basic html file on root directory as index.html and into body section define there 6 divisions for our 6 images/gifs. Each division has its own class as image1 to 6. You can also add a hyperlink to your text. Don't forget to give css file path as stylesheet.


2- First codes are as always for body to give us a background color and also common rules can be defined here. After body we style our header with some shadow effects.


3- We need to use our png files s thumbnail of our gifs so we define here position to take them on same position. After that we define a opacity hover effect to our png images so it can dissappear and our gifs can be visible with its animation. I also gave here a standart width to all img tags to make them one size. You can prepair presized images and gifs so its not necessary.


4- Now we can position our images. We use here top and left spacing to move to their position. And with z-index we define an order to bring them front. With transform code we define a rotation on images so we can create our effect.


5- On a class we style our text with hyperlink. With text-decoration: none code we remove the underline on links. Than with following three codes we are positioning it. After that we define some style to give him a nice look.


6- With hover code block we are defining the actions in once to all images. Our animation is bringing the image to fromt when selected. Making it more visible with opacity. And bringing them to their original position with transform: rotate(0deg) .


7- With defining styles to div class we are fine-tuning our work. With radius and shadow its visibility will be nicer. and opacit gives an effecton hover that we already wrote. Our rotating effects will a transition effect on 0.9seconds as linear.


8- And finally our end work...


Video Tutorial


Curriculum


Proof of Work Done

https://github.com/omersurer/Sass-Scss-Tutorials/tree/master/Curriculum_Gallery_Page_Design

Sort:  

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 61195.86
ETH 3009.46
USDT 1.00
SBD 3.80