#learn css animation
Explore tagged Tumblr posts
divinector · 6 months ago
Text
Tumblr media
Trendy CSS Background Animation
3 notes · View notes
codenewbies · 2 years ago
Photo
Tumblr media
CSS Text Animation with Reflection Effect
8 notes · View notes
codingflicks · 1 year ago
Text
Tumblr media
Animated Search bar CSS
2 notes · View notes
palossssssand · 2 years ago
Text
Tumblr media
animated sprites of all my sonas for my silly website
170 notes · View notes
puppppppppy · 1 year ago
Text
Tumblr media
I CANT USE CSS ON ARTFIGHT...............
#I WAS REALLY HOPING TO FIX THE FUCKING. PARAGRAPH WIDTH. SIGH#idk why but it stretches across the ENTIRE page like. it takes up the full width of the browser and it BOTHERS ME. ON ALL THE PAGES#i could try manually putting shift breaks but im worried it might not look so good on mobile. ugghh... auyggghhh.....#im already learning CSS and API so i thought i could put it to good use but. AUGH#this whole time ive had to go into the inspect panel myself and change the padding so i dont have to read the length of the screen#like a fucking typewriter... i would have also loved to use custom fonts and animations......#i did find a guide for BBCode which the site uses on default and it covers basic styling but its not the same. sniffle#you CAN unlock CSS if you donate $25 to the page which seems fair. and if i could do it i would but. i do not have any way of#sending or receiving money online </3 i really need to figure out how to do that so i can set up comms like i said i would last summer#but it intimidates me.... and im already kept on a short leash when it comes to that so it feels like a lot of things could go wrong#i think toyhouse allows CSS or some sort of code...?? i remember seeing some oc pages with custom layouts#if thats the case i'll try fiddling with it but im not very familiar with using toyhouse so thatll take a while#(thanks again for the code sal ^_^ ill put it on my pin once its ready but im trying to learn my way around the site heh ;;)#at least i can use my pixel dividers.. ive been digging around for pixels to use and found some really cute ones#yapping
49 notes · View notes
snoozealarms · 2 years ago
Text
Tumblr media
How to end a frontend developer's career
34 notes · View notes
frontendforever · 9 months ago
Text
Responsive Animated Website With HTML & CSS
youtube
5 notes · View notes
shenzaibird-art · 1 year ago
Text
Tumblr media
I've made a some new teasers for stories that don't exist yet! Why? Because I like making silly stuff with HTML/CSS. They're just single page thingies with some images or slightly animated stuff. These three in the pic are the new ones, everything else is a bit older. (I just revamped the Stories page so it looks nicer, with thumbnails and stuff hehe)
EDIT: HERE'S THE LINK i forgot when I posted it lol ALSO kind of unrelated but I have an RSS feed for my website updates now!
World of Shenzai RSS feed info
...Does anyone still use RSS? I use it for some webcomics and I find it so convenient. So I felt like making one for my site since I don't post on all social medias every time I make a new character profile or add a lore page. Tbh I don't expect anyone to use it but I wanted to have one anyway.
4 notes · View notes
caniondigitals · 1 year ago
Text
CSS Typewriter effect
2 notes · View notes
gamerwoman3d · 6 months ago
Text
Awesome! Is that all I gotta do to get my ancestors to visit?
please learn how to code
like, if you're bored today, and not doing anything,
learn a little bit of coding please
34K notes · View notes
jcmarchi · 3 months ago
Text
What on Earth is the `types` Descriptor in View Transitions?
New Post has been published on https://thedigitalinsider.com/what-on-earth-is-the-types-descriptor-in-view-transitions/
What on Earth is the `types` Descriptor in View Transitions?
Have you ever stumbled upon something new and went to research it just to find that there is little-to-no information about it? It’s a mixed feeling: confusing and discouraging because there is no apparent direction, but also exciting because it’s probably new to lots of people, not just you. Something like that happened to me while writing an Almanac’s entry for the @view-transition at-rule and its types descriptor.
You may already know about Cross-Document View Transitions: With a few lines of CSS, they allow for transitions between two pages, something that in the past required a single-app framework with a side of animation library. In other words, lots of JavaScript.
To start a transition between two pages, we have to set the @view-transition at-rule’s navigation descriptor to auto on both pages, and that gives us a smooth cross-fade transition between the two pages. So, as the old page fades out, the new page fades in.
@view-transition navigation: auto;
That’s it! And navigation is the only descriptor we need. In fact, it’s the only descriptor available for the @view-transition at-rule, right? Well, turns out there is another descriptor, a lesser-known brother, and one that probably envies how much attention navigation gets: the types descriptor.
What do people say about types?
Cross-Documents View Transitions are still fresh from the oven, so it’s normal that people haven’t fully dissected every aspect of them, especially since they introduce a lot of new stuff: a new at-rule, a couple of new properties and tons of pseudo-elements and pseudo-classes. However, it still surprises me the little mention of types. Some documentation fails to even name it among the valid  @view-transition descriptors. Luckily, though, the CSS specification does offer a little clarification about it:
The types descriptor sets the active types for the transition when capturing or performing the transition.
To be more precise, types can take a space-separated list with the names of the active types (as <custom-ident>), or none if there aren’t valid active types for that page.
Name: types
For: @view-transition
Value: none | <custom-ident>+
Initial: none
So the following values would work inside types:
@view-transition navigation: auto; types: bounce; /* or a list */ @view-transition navigation: auto; types: bounce fade rotate;
Yes, but what exactly are “active” types? That word “active” seems to be doing a lot of heavy lifting in the CSS specification’s definition and I want to unpack that to better understand what it means.
Active types in view transitions
The problem: A cross-fade animation for every page is good, but a common thing we need to do is change the transition depending on the pages we are navigating between. For example, on paginated content, we could slide the content to the right when navigating forward and to the left when navigating backward. In a social media app, clicking a user’s profile picture could persist the picture throughout the transition. All this would mean defining several transitions in our CSS, but doing so would make them conflict with each other in one big slop. What we need is a way to define several transitions, but only pick one depending on how the user navigates the page.
The solution: Active types define which transition gets used and which elements should be included in it. In CSS, they are used through :active-view-transition-type(), a pseudo-class that matches an element if it has a specific active type. Going back to our last example, we defined the document’s active type as bounce. We could enclose that bounce animation behind an :active-view-transition-type(bounce), such that it only triggers on that page.
/* This one will be used! */ html:active-view-transition-type(bounce) &::view-transition-old(page) /* Custom Animation */ &::view-transition-new(page) /* Custom Animation */
This prevents other view transitions from running if they don’t match any active type:
/* This one won't be used! */ html:active-view-transition-type(slide) &::view-transition-old(page) /* Custom Animation */ &::view-transition-new(page) /* Custom Animation */
I asked myself whether this triggers the transition when going to the page, when out of the page, or in both instances. Turns out it only limits the transition when going to the page, so the last bounce animation is only triggered when navigating toward a page with a bounce value on its types descriptor, but not when leaving that page. This allows for custom transitions depending on which page we are going to.
The following demo has two pages that share a stylesheet with the bounce and slide view transitions, both respectively enclosed behind an :active-view-transition-type(bounce) and :active-view-transition-type(slide) like the last example. We can control which page uses which view transition through the types descriptor.
The first page uses the bounce animation:
@view-transition navigation: auto; types: bounce;
The second page uses the slide animation:
@view-transition navigation: auto; types: slide;
You can visit the demo here and see the full code over at GitHub.
The types descriptor is used more in JavaScript
The main problem is that we can only control the transition depending on the page we’re navigating to, which puts a major cap on how much we can customize our transitions. For instance, the pagination and social media examples we looked at aren’t possible just using CSS, since we need to know where the user is coming from. Luckily, using the types descriptor is just one of three ways that active types can be populated. Per spec, they can be:
Passed as part of the arguments to startViewTransition(callbackOptions)
Mutated at any time, using the transition’s types
Declared for a cross-document view transition, using the types descriptor.
The first option is when starting a view transition from JavaScript, but we want to trigger them when the user navigates to the page by themselves (like when clicking a link). The third option is using the types descriptor which we already covered. The second option is the right one for this case! Why? It lets us set the active transition type on demand, and we can perform that change just before the transition happens using the pagereveal event. That means we can get the user’s start and end page from JavaScript and then set the correct active type for that case.
I must admit, I am not the most experienced guy to talk about this option, so once I demo the heck out of different transitions with active types I’ll come back with my findings! In the meantime, I encourage you to read about active types here if you are like me and want more on view transitions:
0 notes
divinector · 9 months ago
Text
Tumblr media
Animated Dropdown Menu
3 notes · View notes
codenewbies · 2 years ago
Text
Tumblr media
CSS Glowing Gradient Loader
1 note · View note
codingflicks · 2 years ago
Photo
Tumblr media
Creative CSS3 button border animation
8 notes · View notes
devenuub · 2 years ago
Text
Finished a website y’all boys enjoy
1 note · View note
webtutorsblog · 2 years ago
Text
CSS tutorials for beginners: Learn CSS step-by-step with WebTutor.dev
Tumblr media
CSS, or Cascading Style Sheets, is a stylesheet language used to describe the presentation of a document written in HTML or XML. CSS allows web developers to separate the presentation of a web page from its content, making it easier to maintain and update. CSS works by using selectors to target specific elements on a web page and applying styles to them. Styles can be applied to individual elements or to groups of elements, and can include properties such as font size, color, background color, padding, margin, and more.
CSS provides a powerful and flexible way to style web pages, allowing developers to create beautiful and responsive designs that work across different devices and screen sizes. By mastering CSS, you can take your web development skills to the next level and create stunning websites that stand out from the crowd. To get started with CSS, you will need to learn the basics of CSS, including selectors, properties, and values. You can then start experimenting with different styles and layouts to create unique designs for your web pages. There are many online resources available for learning CSS, including tutorials, videos, and courses, like Google CSS, WebTutor so you can choose the method that works best for you.
3 Methods to Add CSS to Your Web Page
To add CSS to a web page, you can use one of the following three methods:
Inline CSS: Inline CSS is added directly to the HTML element using the "style" attribute. For example, to set the text color of a paragraph to red, you can use the following code:
<p style="color: red;">This text is red.</p>
Internal CSS: Internal CSS is added to the head section of the HTML document using the "style" tag. For example:
<head>   <style>
    p { color: red;  }
  </style> </head> <body>
  <p>This text is red.</p>
</body>
External CSS: External CSS is added to a separate CSS file with a ".css" extension. The CSS file is then linked to the HTML document using the "link" tag in the head section of the HTML document. For example:
<head>
  <link rel="stylesheet" href="styles.css">
</head> <body>
  <p class="red">This text is red.</p> </body>
Understanding the Basics of CSS Syntax and CSS Selectors
CSS syntax consists of a selector followed by one or more declarations enclosed in curly braces. A declaration consists of a property, followed by a colon, and a value, separated by a semicolon.
CSS selectors, on the other hand, are used to target specific elements on a web page and apply styles to them. Selectors can target elements based on their element type, class, ID, attribute values, and more.
For example, consider the following CSS code:
Tumblr media
In this example, h1 is an element type selector that targets all h1 elements on the web page, #header is an ID selector that targets the element with the ID of "header," and. intro is a class selector that targets all elements with the class of "intro."
By mastering both CSS syntax and selectors, developers can create effective and efficient stylesheets that apply styles to their web pages in a targeted and precise manner. There are many online resources available for learning CSS, including tutorials, and courses, making it easy to get started with CSS and advance your skills.
By mastering the syntax of CSS, developers can create effective and efficient stylesheets that apply styles to their web pages in a targeted and precise manner.
Additional information about CSS comments
CSS comment syntax used to add notes or reminders to the stylesheet for developers to reference later. They are ignored by the web browser and do not affect the rendering of the web page.
In CSS, comments can be added using two forward slashes (//) or by enclosing the comment in /* and */.
Example
/* This is a CSS comment that spans multiple lines.
You can add any notes or reminders here that can help you or other developers understand the code. */
h1 {
  color: blue; /* This sets the color of all h1 elements to blue */
}
In this example, the first line is a CSS comment that spans multiple lines and is enclosed in /* and */. The comment is used to provide additional information about the code that follows.
The second comment is a single-line comment that starts with //. It is used to provide information about the line of code that follows it.
By using comments in CSS, developers can make the code more readable, maintainable, and easier to understand.
Overview of CSS colors
Colors are an important aspect of CSS and are used to style HTML elements with various shades, tints, and hues. In CSS colors can be defined using keywords, RGB values, HEX values, HSL values, and more.
Keywords: CSS provides a set of predefined color keywords, such as red, blue, green, black, and white, among others.
RGB values: RGB stands for Red, Green, Blue and is a color model used to represent colors in digital devices. RGB values range from 0 to 255 for each color, where 0 represents no intensity and 255 represents full intensity. RGB values can be defined using the rgb() function, like so: rgb(255, 0, 0).
HEX values: HEX values are another way to represent RGB colors in hexadecimal format. HEX values start with a # symbol and are followed by a combination of six letters and numbers that represent the intensity of the red, green, and blue components. For example, #FF0000 represents the color red.
HSL values: HSL stands for Hue, Saturation, Lightness and is another way to define colors in CSS. HSL values can be defined using the hsl() function, where the hue is represented by a value between 0 and 360 degrees, the saturation and lightness values range from 0% to 100%. For example, hsl(0, 100%, 50%) represents the color red. By using any of these color formats, developers can add a wide range of colors to their web pages and style their HTML elements in different ways.
1 note · View note