UNIT I WEBSITE BASICS, HTML 5, CSS 3, WEB 2.0

1.11 Colors ,Shadows,Text,

Transformations,Transitions,Animations,Bootstrap Framework

The following explains how to use colors, shadows, text utilities, transformations, transitions, animations, and the Bootstrap framework in web technologies, with examples primarily using CSS and Bootstrap. 
CSS Concepts
Cascading Style Sheets (CSS) provides core functionalities for styling web elements. 
Concept DescriptionExample (CSS)
ColorsUsed for foreground (text) and background colors.color: blue; background-color: #fff;
ShadowsAdds visual depth to text or box elements.box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
TextControls typography, alignment, capitalization, etc..text-align: center; text-transform: uppercase; font-family: sans-serif;
TransformationsModifies the position, rotation, scale, or skew of an element in 2D or 3D space.transform: rotate(45deg); or transform: scale(1.1);
TransitionsCreates smooth, animated changes to CSS properties over a specified duration.transition: color 0.5s ease-in-out; (on :hover)
AnimationsUses the @keyframes rule for more complex, multi-stage animations with greater control.@keyframes slidein { 0% { left: 0px; } 100% { left: 100px; } }
Bootstrap Framework
Bootstrap is a popular, free, and open-source front-end framework that uses pre-built HTML, CSS, and JavaScript components to build responsive, mobile-first websites. It provides utility classes to quickly apply common styles. 
Examples with Bootstrap
  • Colors: Bootstrap includes an extensive set of color utility classes that map to a color system (primary, success, danger, etc.).
    • Example: <p class="text-primary">This text is blue.</p>
  • Shadows: Shadows can be enabled via Sass variables and applied using utility classes.
    • Example: <div class="shadow-lg">...</div>
  • Text: Bootstrap offers classes for text alignment, transformation, and weight.
    • Example: <p class="text-center text-uppercase fw-bold">Centered, uppercase, bold text</p>
  • Transformations, Transitions, Animations: While Bootstrap doesn't provide extensive utilities for these as part of its core CSS, standard CSS can be integrated with Bootstrap components. Custom animations are usually implemented with your own CSS or JavaScript libraries. 

Comments

Popular posts from this blog

CS3492 Database Management Systems Syllabus

UNIT I RELATIONAL DATABASES