Materialize Tutorial #7 - Buttons
Skills:
HTML & CSS70%
Key Takeaways
Shows how to create normal and floating buttons using Materialize
Full Transcript
alright then so I feel like so far we've been getting hold of all the basics of materialized and a lot of it in my view is pretty pouring stuff but you have to know it to move on and do the better stuff so now I'd like to introduce some of the more meaty concepts of materialized we're going to start with buttons and I think these classes are amazing for creating buttons really quickly so as you can see again I just have this div with a class of container and inside and h4 same buttons then we have these and context right here and these are going to be our buttons once we've classed them up we've give them classes and then we're going to do a floating button example and I'm going to show you other elements as well so the minute this looks like this on the page nothing special but we're now going to start creating buttons very quickly so to make a normal button in materialise all we do is give something a class of BTN and that magically creates a button for you so if we take a look at this you're gonna be surprised how easy this was it creates a nice button with a nice little hover effect or right there so that is super easy to do to create a button like this alright so what if that is a bit large what if we want a slightly smaller button well we can say BTN - small and that's going to do that for us and we should see a slight decrease in size not much but there is something and same goes for a large button we could say BTN - large and that is going to give us a gigantic button or like so alright then so what else can we do well we can color our buttons something different because by default they all get this kind of greenie button over here but if we want to override that we can do we know how to apply background colors we just give them a class keyword for that color so I could say I want to button first of all then I want to make this indigo so if we save that and preview this now we get an indigo button awesome right okay so what about a disabled button a button that you don't want someone to click yet or you want to prevent them from clicking yet well dead easy to do again we say BTN for button then we say disabled so if we save that and see this we can see that this is all grayed out now and it doesn't have a hover effect so that's a disabled button for you oran and so another kind of button is a floating button and these are kind of circular buttons that we normally put icons inside of or something like that so let me just show you a quick example of this I'm going to come to this anchor tag right here and the class I'm gonna give to this is BTN - floating so this is a floating button now if I save that and view it in a browser then we can see this is circular now and when we look at icons we'll look at creating these circular buttons with icons inside them and we will look more at floating buttons later on in the series as well but for now let's just make this a different color first of all and save it we can see now it becomes pink that's cool and I want to show you something really cool here we add a class of pulse and this is going to give this button a pulsating effect now this really only works on floating buttons you're not probably going to get it to work on these buttons right here but on a floating button it looks really nice and just draws your attention to the button alright now it's not just anchor tags we can apply this button class too we can apply it to other elements as well we have a div class right here so I could quite as easily give this a button class and it's going to do exactly the same thing right here so that makes a button as well obviously you just have to hook up your JavaScript or react to this div in some way shape or form because it's not an anchor tag anymore it's not going to take you anywhere so you have to do that functionality yourself but you can apply it to different tags as well not just anchor tags alright so I want to show you one more cool thing now and that is the wave effect for these buttons so if we want to make this look a little cooler what we could do is go to one of these buttons and say waves effect and then we'll say waves I felt like in fact we'll do it on a couple of them so we'll give this top one a waves effect as well and we'll say waves light so two different classes waves effect and waves light and if we go over here now and hover over one of these buttons did we save it yes we did now if we click on this check what happens we get that little wave effect see it starts light and it zooms out was to the edge of the buttons same for this one which we applied it to nice little effect but if we do the other ones it doesn't do that only with the ones that have the waves effect classes to them but could make this waves dark if we wanted to save that I don't think it quite looks as good but it still does the trick that goes dark instead of lighter when we click it all right so there's some simple buttons for you to get cracking on with I think it's really cool this class and lets us very very easily create all these cool looking buttons
Original Description
Hey gang, in this Materialize tutorial we'll take a look at how to create normal & floating buttons.
----------------------------------------
🐱💻 Course Links:
+ VS Code editor - https://code.visualstudio.com/
+ GitHub repository (course files) - https://github.com/iamshaunjp/materialize-playlist
+Materialize docs - https://materializecss.com/getting-started.html
----------------------------------------
🤑 Donate @ https://www.paypal.me/thenetninja
🎓Find me on Udemy @ https://www.udemy.com/user/47fd83f6-5e4a-4e87-a0f0-519ac51f91b6/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Net Ninja · Net Ninja · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
GraphQL Tutorial #5 - Express App Setup
Net Ninja
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
GraphQL Tutorial #8 - Root Query
Net Ninja
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
GraphQL Tutorial #12 - Author Type
Net Ninja
GraphQL Tutorial #13 - Type Relations
Net Ninja
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
GraphQL Tutorial #18 - Mutations
Net Ninja
GraphQL Tutorial #19 - More on Mutations
Net Ninja
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
GraphQL Tutorial #23 - Create React App
Net Ninja
GraphQL Tutorial #24 - Book List Component
Net Ninja
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
GraphQL Tutorial #28 - Add Book Component
Net Ninja
GraphQL Tutorial #29 - External Query File
Net Ninja
GraphQL Tutorial #30 - Updating Component State
Net Ninja
GraphQL Tutorial #31 - Composing Queries
Net Ninja
GraphQL Tutorial #32 - query variables
Net Ninja
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
GraphQL Tutorial #34 - Book Details Component
Net Ninja
GraphQL Tutorial #36 - Styling the App
Net Ninja
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
Updated Vue & Firebase Course (Udemy)
Net Ninja
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja
More on: HTML & CSS
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
How to Create a Second Version of Yourself Inside Obsidian Using AI (Step-by-Step Guide)
Medium · ChatGPT
How to prepare for Spain civil service TIC exam using AI in 2026
Dev.to · David García
Going Viral! How I Created AI Kissing Videos Step by Step Easily Using AIAI.com
Medium · AI
How to prepare TIC teacher exams in Spain with AI (oposiciones 2026)
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI