66fba5ebabcf0_Assignment_FE_Advanced_CSS3_Transforms_3.2.pdf_1727768043
66fba5ebabcf0_Assignment_FE_Advanced_CSS3_Transforms_3.2.pdf_1727768043
In this task, you will explore how to use Transform to create a structured layout that
adapts seamlessly to different screen sizes.
Set Up:
• Open a text editor (e.g., Visual Studio Code) and create a file named transform.html.
• Add Heading for Transitions: Use an <h1> tag to introduce CSS3 transitions.
• Create a Div for Transition: Add a <div> with the class box for the transition
example.
• Add Heading for Transformations: Use another <h1> tag to introduce CSS3
transformations.
Create Divs for Transformations: Add multiple <div> elements with classes translate,
rotate, scale, and skew for the transformation examples.
1. Define Common Box Styles: Use a CSS rule for the .box class to set initial width,
height, and background color.
o Example: width: 100px; height: 100px; background-color: #3498db;
2. Add Transition Effects: Add a transition property to the .box class to animate the
background color and width when hovered.
o Example: transition: background-color 0.5s ease, width 1s;
3. Create Hover Effect for Transition Box: Add a .box:hover rule to change the
background color and width on hover.
1. Define Additional Box Styles: Create specific styles for .translate, .rotate, .scale, and
.skew classes to apply transformations.
o Example for translate: .box.translate { transform: translateX(100px); }
2. Add Transition to Transformations: Include a transition property for smooth
transformations in the .box class.
o Example: transition: transform 0.5s;
3. Style for Each Transformation: Define how each transformation should appear
when the respective class is applied:
o Rotate: .box.rotate { transform: rotate(45deg); }
o Scale: .box.scale { transform: scale(1.5); }
o Skew: .box.skew { transform: skew(20deg); }
• Ensure all elements are correctly implemented, then save your file.
• Open your HTML file in a web browser to check the output and submit as instructed.
Practice Work:
pg. 2
Excel PTP Solutions, 4th floor, Sunrise Avenue, Nr. Nishi Hospital, SP Stadium to commerce road, Navrangpura,
Ahmedabad – 380009. PH : 079 26400298/698, Email : info@excelptp.com | www.excelptp.com
Advanced CSS3: Transitions & Animations
Transition Basics:
• Create a button with smooth color and size transitions on hover using the transition
property.
pg. 3
Excel PTP Solutions, 4th floor, Sunrise Avenue, Nr. Nishi Hospital, SP Stadium to commerce road, Navrangpura,
Ahmedabad – 380009. PH : 079 26400298/698, Email : info@excelptp.com | www.excelptp.com
Use transition-property, transition-duration, and transition-timing-function to control how the
button changes.
Keyframe Animations:
Breakdown:
pg. 4
Excel PTP Solutions, 4th floor, Sunrise Avenue, Nr. Nishi Hospital, SP Stadium to commerce road, Navrangpura,
Ahmedabad – 380009. PH : 079 26400298/698, Email : info@excelptp.com | www.excelptp.com
General Tips: You can also find more interview questions/practical work on the internet related to various
modules and sections to build a clear understanding of the concepts. This will help you confidently approach
and successfully clear interview rounds. We may conduct surprise Q&A sessions, both in groups and individually,
to check your progress. So, be prepared and keep up with your studies as the workload increases module by
module.
***
pg. 5
Excel PTP Solutions, 4th floor, Sunrise Avenue, Nr. Nishi Hospital, SP Stadium to commerce road, Navrangpura,
Ahmedabad – 380009. PH : 079 26400298/698, Email : info@excelptp.com | www.excelptp.com