SEC S19W3 || Animation, Transition & Transform (HTML5+CSS3)

in burnsteem25 •  4 months ago 

Hello guys,
It's a pleasure to be part of this week's engagement challenge which goes with the title Animation, Transition & Transform (HTML5+CSS3). This week the contest is organised by @kouba01 and it is a beautiful contest as all hands are on practicals. So without further ado I will like to start immediately.


Blue Creative NFT YouTube Thumbnail.png
Background image Edited on Canvas

Exercise 1:


Apply a dark gray background to the entire document and fuchsia pink text color by default, center the titles

Having created the web page "Index.html" then the "styleTP.css", I moved to the second question which says I should apply a dark gray background to the entire document and fuchsia pink text color by default, center the titles. The codes for both HTML and CSS for this operation can be seen below.

HTML code
kouba1.PNG

CSS code
kouba2.PNG

Output
kouba3.PNG

Apply a light gray background When you move the mouse cursor over the page title

Since we have finished with the first question, we move to the next which says we should apply a light gray background When you move the mouse cursor over the page title. Here we are taking h1 as the title so the CSS code and the results of the output can be seen below.

CSS code
kouba4.PNG

Output
Kouba5.png

Apply a double fuchsia color border to the image, an image width of 75% and an automatic image height and rounding of images by 50% in the top left and bottom right corners

Still on the CSS code, we are going to be making some adjustment to the image using the instructions "apply a double fuchsia color border to the image, an image width of 75% and an automatic image height and rounding of images by 50% in the top left and bottom right corners". So the CSS code and the output can be seen in the screenshot below.

CSS code
kouba8.PNG

Output
kouba6.PNG

kouba7.PNG

When you approach the mouse cursor over an image a transition is triggered allowing you to move its rounding towards the top right and bottom left corners. This transition has a one second wait before triggering. It lasts 3 seconds and is fast at the beginning and decelerates at the end.

Still on the CSS part of the code we are going to carry out this function. "When you approach the mouse cursor over an image a transition is triggered allowing you to move its rounding towards the top right and bottom left corners. This transition has a one second wait before triggering. It lasts 3 seconds and is fast at the beginning and decelerates at the end." The CSS code as well as the output can be seen below.

CSS code
kouba8.PNG

Output
kouba9.PNG

kouba10.PNG

An animation is performed for the text. It consists of changing the font color and the background color.

Here in this section, we will be applying an animation on the text below the image and this animation consist of changing the font colour and the background colour. To achieve this we will be using the animation function in CSS which is textcolorchange and the we apply the keyframes function to it.

Here I will be working with the colors (background, font) change in 5 animation intervals respectively as follows: (white, red) → (yellow, brown) → (light green, dark green) → (aqua, blue) → (fuchsia, black ) The CSS code and the screenshot of the output can be seen below.

CSS code
kouba11.PNG

kouba12.PNG

Output
kouba13.PNG

kouba14.PNG

An animation allows you to change the alignment of the last title. The title is initially right aligned with a yellow color shadow and an orange color shadow, font size equal to 150%. The animation allows you to change the alignment in three intervals as follows: right then center then left. The animation lasts 1 second and loops alternately 30 times.

The last title aside the footer I'm taking into consideration in this task is h3. Here the title is initially right aligned with a yellow color shadow and an orange color shadow, font size equal to 150%. The animation allows you to change the alignment in three intervals as follows: right then center then left. It starts again and continuous in same manner. The CSS code responsible for that can be seen from the screenshot below the output is also seen below.

CSS code
kouba17.PNG

Output
kouba15.PNG

kouba16.PNG

Final Results View

The final view of the work done can be seen from the video. I recorded the entire work I did from the beginning and it carries all the task I have been asked to perform from the first question to the last.

The codes for the web is also attached below in the screenshot i.e the HTML and the CSS file.

HTML code
kouba18.PNG

CSS code

kouba19.PNGkouba20.PNG
kouba21.PNGkouba22.PNG

Exercise 2:


Here in this part, I will be creating an image gallery in HTML5 and CSS3 using the instructions given which states that "In the archive provided, you have six images that you will have to place on the same page".

So let's go into the HTML and CSS code that shows this properly.

HTML code
star1.PNG

star2.PNG

CSS code
star3.PNG

star4.PNG

Output
star5.PNG

CSS Shading

In this part, I added background colour of white to the figures holding the images and I gave figcaption a black colour so that it can be visible. From the screenshot of the code below and the output you can see the adjustment made on our gallery making it more beautiful and presentable.

CSS code
star6.PNG

Output
star7.PNG

CSS Rotation

For the rotation of the images, I used nth-child call to rotate the images to different angles. From the screenshot below you can see the CSS code use to achieve this and the output gotten from the work.

CSS code
star8.PNG

Output
star9.PNG

Hovering & Animation

Here in this part I have added the hovering code to the CSS such that when you take your cursor to the image, you will notice it enlarge by 1.3 and the image will stand straight and not bend like as it was before and then you leave it goes back to the normal design. The CSS code and output can be seen below.

CSS code
star10.PNG

Output
star11.png

Final output via video

Entire code

star12.PNGstar13.PNG
star14.PNGstar15.PNG
star16.PNGstar17.PNG

I want to finally invite @solaymann, @steemdoctor1, and @suboohi to also join the contest in this community today.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
Loading...

Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
image.png
please click it!
image.png
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)

The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.

Upvoted. Thank You for sending some of your rewards to @null. It will make Steem stronger.

Hello @simonnwigwe ,

Great job 👍 on your post. Your explanations of using CSS for animations and transformations are really clear. I liked you showed each step with code and screenshots it makes everything easy to understand.

The gallery and hover effects are impressive. Thanks for sharing your work,wish you success 💖🤗🌸💐🌺.

Thanks for stopping by my friend. Your comment is highly appreciated.

Hi friend
Greetings to you hope you will be fine. Thanks for sharing your task with us where we can easily understand how it work. The way is very simple and easy and everyone understand well. Your hard work to make gallery is Fabolous. You are on right way where you find yourself in a good developer community. So I wish you more success. Keep smiling.

Thanks for your wonderful comment my friend.

image.png
CONGRATULATIONS!!

This post has been upvoted - Steem's Angels with @steemcurator09/ Curated by: @ruthjoe

@ruthjoe thanks for the support it is highly appreciated

Your presentation looks perfectly okay, for people to understand and put what they have read into practice. Indeed, your presentation is well presented. I wish you good luck.

Thanks brotherly. I'm grateful 🥲

Hello sir.

Thanks for sharing your entry with us boss man. I'm so thrilled with the work progress. And the way you align your code is really in interesting and easy to read. I did pick one or two more things from your entry.

Thanks

You are welcome 🤗