TVL Comprog11 Q2 M2
TVL Comprog11 Q2 M2
Technical Vocational
Livelihood
QUARTER
2 Computer Programming
Republic Act 8293, section 176 states that: No copyright shall subsist in
any work of the Government of the Philippines. However, prior approval of the
government agency or office wherein the work is created shall be necessary for
exploitation of such work for profit. Such agency or office may, among other things,
impose as a condition the payment of royalties.
Quarter 2
Self Learning Module 2
CSS Transform methods
Welcome to the Computer Programming for the ICT Module on CSS Transform
methods!
This module was collaboratively designed, developed and reviewed by educators from
Schools Division Office of Pasig City headed by its Officer-In-Charge Schools Division
Superintendent, Ma. Evalou Concepcion A. Agustin in partnership with the Local
Government of Pasig through its mayor, Honorable Victor Ma. Regis N. Sotto.
The writers utilized the standards set by the K to 12 Curriculum using the Most
Essential Learning Competencies (MELC) while overcoming their personal, social,
and economic constraints in schooling.
This learning material hopes to engage the learners into guided and independent
learning activities at their own pace and time. Further, this also aims to help learners
acquire the needed 21st century skills especially the 5 Cs namely: Communication,
Collaboration, Creativity, Critical Thinking and Character while taking into
consideration their needs and circumstances.
In addition to the material in the main text, you will also see this box in the body of
the module:
As a facilitator you are expected to orient the learners on how to use this module.
You also need to keep track of the learners' progress while allowing them to manage
their own learning. Moreover, you are expected to encourage and assist the learners
as they do the tasks included in the module.
For the Learner:
Welcome to the Computer Programming for the ICT Module CSS Transform methods!
The hand is one of the most symbolized part of the human body. It is often used to
depict skill, action and purpose. Through our hands we may learn, create and
accomplish. Hence, the hand in this learning resource signifies that you as a learner
is capable and empowered to successfully achieve the relevant competencies and
skills at your own pace and time. Your academic success lies in your own hands!
This module was designed to provide you with fun and meaningful opportunities for
guided and independent learning at your own pace and time. You will be enabled to
process the contents of the learning material while being an active learner.
Lesson- This section will discuss the topic for this module.
Post-test - This will measure how much you have learned from
the entire module. Ito po ang parts ng module.
EXPECTATION
PRE–TEST
4. Method that skews an element along the X-axis by the given angle.
A. translate()
B. skewY()
C. matrix()
D. skewX()
5. Method that skews an element along the X and Y-axis by the given
angles.
A. skewXY()
B. scale()
C. skewY()
D. skew()
RECAP
Module 1 discussed the CSS background, color, gradients and shadow now
describe the following below on how you understand the lesson.
• background-clip
• background-image
• background-origin
• background-size
• Linear Gradients
• Radial Gradients
• Box-shadow
• Text-shadow
LESSON
CSS Transforms
Transforms allow us to translate, rotate, scale, and skew elements.
CSS 2D Transforms
• translate()
• rotate()
• scale()
• skewX()
• skewY()
• matrix()
translate() method allows you to moves an element from its current
position according to the parameters given for the X-axis and the Y-axis.
skew() method allows you to skews an element along the X and Y-axis
by the given angles.
Syntax:
transform: matrix(scaleX(),skewY(),skewX(),scaleY(),translateX(),translateY())
CSS 3D Transforms
• rotateX()
• rotateY()
rotateX() method allows you to rotates an element around its X-
axis at a given degree
ACTIVITIES
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
margin: 50px;
background-color: yellow;
border: 1px solid black;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
1. With the transform property, skew the <div> element 20 degrees along the
X-axis, and 30 degrees along the Y-axis.
2. With the transform property, skew the <div> element 10 degrees along the
X-axis.
3. With the transform property, move the <div> element 50px to the right,
and 50px down.
4. With the transform property, rotate the <div> element 150deg around its
X-axis.
*Answer the Worksheet number 2 and submit a soft copy/hard copy of your
completed activity to your subject teacher on the following meeting.
WRAP–UP
• rotateX()
• rotateY()
• translate()
• rotate()
• scale()
• skewX()
• skewY()
• matrix()
VALUING
2. How will you use the knowledge you acquired in this module?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
POST TEST