Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,320 --> 00:00:02,700
All right, now, let's do this.
2
00:00:03,030 --> 00:00:06,240
The second 3D button here, the circle looks a little bit like this.
3
00:00:06,250 --> 00:00:06,870
It's a circle.
4
00:00:06,870 --> 00:00:08,100
It's got a radial gradient.
5
00:00:08,520 --> 00:00:12,450
When you got this back here, this kind of depth to it.
6
00:00:12,450 --> 00:00:17,640
So when you it looks like it's popping off the the background and when you click it, it kind of sinks
7
00:00:17,640 --> 00:00:19,830
into it and it's a cool 3D effect.
8
00:00:20,670 --> 00:00:22,590
So we're going to create that button right now.
9
00:00:22,590 --> 00:00:23,850
Pop over to your code editor.
10
00:00:24,210 --> 00:00:27,090
And now I'm going to add that comment flank for 3D button number two.
11
00:00:28,830 --> 00:00:30,030
So I know where I am.
12
00:00:31,440 --> 00:00:31,800
OK.
13
00:00:32,010 --> 00:00:34,770
And first thing I want to do is I'm going to select that button.
14
00:00:34,980 --> 00:00:37,770
So the class of BTN Dash 3D Dash two.
15
00:00:39,120 --> 00:00:43,110
I'm going to start off saying position relative because we're going to be doing a little bit of positioning.
16
00:00:43,110 --> 00:00:48,480
So we need that to have something declared a fallback background.
17
00:00:48,490 --> 00:00:54,390
We're going to have it be kind of like a yellow OECD 300 and then this is going to be default yellow,
18
00:00:54,390 --> 00:00:56,640
but we're going to want to add some radial gradients.
19
00:00:56,640 --> 00:00:59,010
So we're going to also declare another background.
20
00:01:00,330 --> 00:01:03,900
And then we're going to say web kit radial gradient.
21
00:01:05,160 --> 00:01:10,470
And this requires two values you could say like red comma blue, and then it will look something like
22
00:01:10,470 --> 00:01:15,450
this over here in the browser, you could see pretty ugly radial gradient, but that's how the radial
23
00:01:15,450 --> 00:01:16,140
gradient works.
24
00:01:16,650 --> 00:01:17,740
We're going to be declaring a few.
25
00:01:17,760 --> 00:01:19,080
These are browser prefixes.
26
00:01:19,080 --> 00:01:23,190
We're going to do web kit o mas and then just the fallback standard syntax.
27
00:01:23,760 --> 00:01:24,420
So we'll get there.
28
00:01:25,170 --> 00:01:28,380
So instead of red and blue, we're going to do something a little bit more complicated.
29
00:01:28,710 --> 00:01:34,260
We're just going to using Excel again for hue saturation, saturation and lightness, the Hue is 50
30
00:01:34,260 --> 00:01:40,140
for 100 percent for the saturation so fully saturated and 50 percent in terms of lightness.
31
00:01:40,140 --> 00:01:43,880
So slightly dark, not 100 percent white, not zero like black.
32
00:01:43,890 --> 00:01:50,640
We just want to be in the middle and then do another excel and do the same color, the same hue and
33
00:01:50,640 --> 00:01:52,200
saturation, but different lightness.
34
00:01:52,200 --> 00:01:56,670
40 percent So I'm going to copy this based based based change.
35
00:01:56,670 --> 00:02:04,290
The first the second browser prefix to the letter O for opera and the third one to Mars for Mozilla,
36
00:02:04,560 --> 00:02:06,650
and the last one just removed the prefix altogether.
37
00:02:06,660 --> 00:02:11,490
That's the standard syntax that right there is going to give you a radial gradient checked over in your
38
00:02:11,490 --> 00:02:15,600
browser looks a little bit like that makes fine and dandy beauty.
39
00:02:16,350 --> 00:02:20,580
Let's move down back here and our code editor font size.
40
00:02:20,580 --> 00:02:26,580
I'm going to say one point four RAM and then we're going to go ahead and do some text shadows, and
41
00:02:26,580 --> 00:02:32,580
that's going to be zero negative one pixel zero and then see three a f zero seven.
42
00:02:33,030 --> 00:02:34,680
What's that negative one pixel do?
43
00:02:34,680 --> 00:02:38,250
That's the vertical offset for the text shadow.
44
00:02:38,250 --> 00:02:45,480
So if I had a positive number like one pixel, the tech shadow would be one pixel below the text.
45
00:02:45,780 --> 00:02:49,170
But a negative value like negative one is one pixel above the text.
46
00:02:49,170 --> 00:02:55,320
So I want the shadow to be above the text and zero here is the I believe that's the horizontal axis
47
00:02:55,980 --> 00:02:56,790
offset story.
48
00:02:56,910 --> 00:02:58,130
And this is the blur.
49
00:02:58,140 --> 00:02:59,460
The third value is the blur.
50
00:02:59,460 --> 00:03:02,100
I don't want any blur, I don't want any horizontal offset.
51
00:03:02,100 --> 00:03:10,140
I just want negative one vertical offset so that it's slightly above the text and then a slightly lighter.
52
00:03:11,160 --> 00:03:16,980
A more white yellow than what is on the background, you'll see the effect that that gives shortly.
53
00:03:18,630 --> 00:03:23,410
Color of the text is going to be white border solid one pixel.
54
00:03:23,670 --> 00:03:24,930
We've got that cell again.
55
00:03:24,930 --> 00:03:30,120
We're going to do 50 for 100 percent and 20 percent, so a little bit dark.
56
00:03:30,870 --> 00:03:36,510
And then we've got the border radius that's going to be 100 percent for full circle height.
57
00:03:36,780 --> 00:03:41,310
120 pixels width 100.
58
00:03:43,280 --> 00:03:50,840
Twenty Pixels Z Index for because we're going to be playing with some positioning of the Z index because
59
00:03:50,840 --> 00:03:56,810
we're going to have that background behind it, we want to make sure it's above, you know, there's
60
00:03:56,810 --> 00:03:57,770
a method to my madness.
61
00:03:57,770 --> 00:04:02,570
OK, so Z index for now, let's check it out in the browser.
62
00:04:02,750 --> 00:04:03,920
Perfect circle looks great.
63
00:04:04,280 --> 00:04:06,770
You could see the text here.
64
00:04:06,770 --> 00:04:07,730
Look at the text shadow.
65
00:04:08,000 --> 00:04:11,210
You can see that slight dark yellow.
66
00:04:11,720 --> 00:04:17,420
It looks like this circle text is indented within the element, so that's what that effect gives it
67
00:04:17,420 --> 00:04:23,180
versus the Facebook button we did up here where the text shadow is below it makes it look like it pops
68
00:04:23,180 --> 00:04:23,750
off the button.
69
00:04:23,960 --> 00:04:28,610
This one I wanted to make it look like it's in the button a little bit like it's, you know, you take
70
00:04:28,610 --> 00:04:30,350
like a stamp, like it's stamped inside of it.
71
00:04:30,860 --> 00:04:36,080
OK, now we're going to do watch this when I click this has this gnarly looking outline outline doesn't
72
00:04:36,230 --> 00:04:41,390
let me do border radius, so we're going to remove the outline pop over to the code editor outline none
73
00:04:41,390 --> 00:04:41,830
gone.
74
00:04:41,840 --> 00:04:46,330
I don't usually like to remove outlines for accessibility reasons, but in this case it's gone.
75
00:04:46,350 --> 00:04:47,750
We're going to do something else.
76
00:04:48,770 --> 00:04:52,310
All right, we're going to do some dark shadows, we're going to create this effect right here over
77
00:04:52,310 --> 00:04:53,000
in the browser.
78
00:04:53,150 --> 00:04:57,350
It gives this cascading effect that makes it look like it's lifted off in the background.
79
00:04:57,350 --> 00:04:59,600
We're going to do that right now with a bunch of box shadows.
80
00:04:59,600 --> 00:05:03,530
So let's go back to the code editor and start off with Box Shadow.
81
00:05:04,460 --> 00:05:08,870
I'm not going to do the browser prefixes because Box Shadow is pretty widely accepted, and I don't
82
00:05:08,870 --> 00:05:10,280
want to write this out so many times.
83
00:05:10,820 --> 00:05:19,700
So VOC Shadow, we're going to start it with an inset zero one pixels zero HL 50 for 100 percent and
84
00:05:19,700 --> 00:05:20,450
50 percent.
85
00:05:21,950 --> 00:05:26,750
And if I left it at that, it's going to give us this slight hairline above it, making it look like
86
00:05:26,750 --> 00:05:31,100
the light is shining down from above and giving it a little bit of a depth looks nice.
87
00:05:31,910 --> 00:05:33,980
Cool thing is, I can add more.
88
00:05:35,330 --> 00:05:39,830
I can add more than one line to this box shadow instead of writing Box Shadow Box in a boxer like that,
89
00:05:39,830 --> 00:05:40,850
which I don't even know if will work.
90
00:05:41,150 --> 00:05:43,820
You can actually just separate the values with the comma.
91
00:05:44,910 --> 00:05:52,580
Go to a new line just for readability purposes and add another value for the box shadow style.
92
00:05:52,700 --> 00:05:53,330
So that's cool.
93
00:05:53,510 --> 00:05:58,970
So we're going to do not insert for the second one two pixels, zero eight yourself, you guessed it
94
00:05:58,970 --> 00:06:01,580
50 for 100 percent and 20 percent.
95
00:06:02,180 --> 00:06:10,100
Now what we're going to do here, we're going to copy this line and separated by comma pasted change,
96
00:06:10,100 --> 00:06:14,750
a couple of values three pixels for the next one and take off a couple of percent.
97
00:06:15,590 --> 00:06:21,020
You'll be able to see a pattern here, 16 percent separated by comma.
98
00:06:21,350 --> 00:06:22,970
This is going to be six pixels.
99
00:06:23,240 --> 00:06:25,190
This is going to be 14 percent.
100
00:06:25,700 --> 00:06:28,460
This one is going to be seven pixels.
101
00:06:28,490 --> 00:06:28,830
Oops.
102
00:06:28,850 --> 00:06:34,880
This four five six pixels and this is going to be 12 percent.
103
00:06:35,570 --> 00:06:36,380
Seven pixels.
104
00:06:37,790 --> 00:06:38,510
10 percent.
105
00:06:39,440 --> 00:06:40,220
Just a couple more.
106
00:06:41,510 --> 00:06:42,310
Eight pixels.
107
00:06:43,490 --> 00:06:44,120
Eight percent.
108
00:06:45,080 --> 00:06:51,230
And this was going to be nine pixels and then six percent basically goes to black ended with a semicolon.
109
00:06:51,260 --> 00:06:51,830
Save that.
110
00:06:52,070 --> 00:06:53,420
Check it out over here in the browser.
111
00:06:54,080 --> 00:06:55,070
You get that cool effect.
112
00:06:55,520 --> 00:06:57,030
Looks pretty, pretty cool.
113
00:06:57,050 --> 00:06:58,090
You can see what happens.
114
00:06:58,100 --> 00:07:00,290
Just adding more block shadow values.
115
00:07:00,470 --> 00:07:01,750
It's just giving that affects.
116
00:07:01,750 --> 00:07:03,170
It's gradually going to darker.
117
00:07:03,170 --> 00:07:05,360
That gives the illusion that it's kind of three dimensional.
118
00:07:05,960 --> 00:07:06,410
Pretty cool.
119
00:07:07,910 --> 00:07:12,740
Now what we're gonna do is when we hover and click on it, we're going to give it some, some styles.
120
00:07:13,850 --> 00:07:16,710
So I'm going to go over here to my thesis tab.
121
00:07:17,210 --> 00:07:24,170
And in not final sorry BTN Dash 3D Dash to hover.
122
00:07:24,920 --> 00:07:29,650
We're going to change the radial gradient, so I'm just going to copy it up here.
123
00:07:31,680 --> 00:07:33,780
We'll leave the fallback, I don't mean to change that.
124
00:07:34,180 --> 00:07:40,410
If you want, you can, and I'm going to change the radial gradient all around so that when you hover,
125
00:07:40,440 --> 00:07:41,760
it changes the color of it.
126
00:07:43,290 --> 00:07:49,110
So HL 50 for 100, that's going to say the same, but we're going to change the lateness to 45 on here
127
00:07:49,140 --> 00:07:52,200
and 35.
128
00:07:54,000 --> 00:07:54,390
From there.
129
00:07:54,540 --> 00:07:55,170
Copy that.
130
00:07:55,560 --> 00:08:01,110
The two Excel values, paste them in each of the styles here.
131
00:08:01,860 --> 00:08:02,670
Save you typing.
132
00:08:02,910 --> 00:08:03,540
Save that.
133
00:08:03,780 --> 00:08:04,920
Check it out in the browser.
134
00:08:04,950 --> 00:08:05,760
You're going to hover.
135
00:08:05,790 --> 00:08:07,560
It's going to work for you beautifully.
136
00:08:08,700 --> 00:08:11,160
And then now we're going to do is on the act of state.
137
00:08:11,160 --> 00:08:14,220
We're going to change the real gradient as well.
138
00:08:15,090 --> 00:08:19,020
Copy all that and then change.
139
00:08:19,230 --> 00:08:20,640
Hover to active.
140
00:08:20,970 --> 00:08:26,940
I'm going to change the values from forty five to forty three and thirty five to thirty thirty three.
141
00:08:27,660 --> 00:08:29,130
Copy both of those.
142
00:08:30,250 --> 00:08:35,290
Paste them in each of the lines here to save you some typing just like that.
143
00:08:36,410 --> 00:08:36,770
Cool.
144
00:08:37,720 --> 00:08:39,790
And now we'll just check it out.
145
00:08:39,940 --> 00:08:45,760
So here in the browser, hover active, hover, active, default, hover active looks good.
146
00:08:46,330 --> 00:08:51,160
OK, now below these lines here we're going to do top two pixels.
147
00:08:51,160 --> 00:08:54,010
We're going to bump it down to pixels when we click on it.
148
00:08:54,160 --> 00:08:57,220
Now watch what happens over here in the browser.
149
00:08:57,640 --> 00:08:59,920
Click pops down to pixels, but there's a problem.
150
00:09:00,130 --> 00:09:01,540
It moves the entire element down.
151
00:09:01,540 --> 00:09:08,170
I only want it to rumble to move the foreground down to pixels, not the block shadows.
152
00:09:08,170 --> 00:09:09,130
So how do we do that?
153
00:09:09,370 --> 00:09:14,160
Because here you can see we kind of do a similar thing and almost sinks into the button like you're
154
00:09:14,320 --> 00:09:18,610
clicking, you know, clicking a button that sinks down.
155
00:09:19,450 --> 00:09:22,030
So that's what we want to do here at the Circle.
156
00:09:22,240 --> 00:09:25,900
We don't want to move the background, the that we want to move just the top.
157
00:09:25,910 --> 00:09:26,860
So how do we do that?
158
00:09:27,610 --> 00:09:28,330
Easy.
159
00:09:28,720 --> 00:09:34,240
Over here in your active casserole, we're just going to copy that box shadow that we did up here.
160
00:09:35,600 --> 00:09:39,260
And all we're going to do because we need to account for two pixels that we're bumping down.
161
00:09:39,590 --> 00:09:44,810
All we need to do is remove the last two lines of box shadow.
162
00:09:46,100 --> 00:09:51,290
Place that last one with semicolon, save it, and now because we've taken two of those out, those
163
00:09:51,290 --> 00:09:54,380
two pixels, it's going to accommodate this click.
164
00:09:58,550 --> 00:09:59,360
Looks pretty good.
165
00:10:00,080 --> 00:10:00,420
Cool.
166
00:10:00,440 --> 00:10:04,010
So that is the Circle 3D button, that's all we need to do for that one.
167
00:10:04,280 --> 00:10:07,430
Let's jump down now into the gradient bordered buttons.
168
00:10:08,940 --> 00:10:12,790
All right, now, we're going to mess around with these gradient bordered buttons right here.
169
00:10:12,810 --> 00:10:19,140
You can see we got this one kind of this orange, red to yellow from the bottom right bottom left hand
170
00:10:19,140 --> 00:10:21,470
corner up into the right hand corner.
171
00:10:21,490 --> 00:10:21,950
There you get that.
172
00:10:21,960 --> 00:10:24,990
You see the point here is that the border has a gradient on it.
173
00:10:24,990 --> 00:10:27,750
And then when you hover, you get the gradient on the inside.
174
00:10:27,750 --> 00:10:33,110
But the point here is that you can make God borders have gradients, which is cool.
175
00:10:33,120 --> 00:10:35,310
And then the second example we actually have this.
176
00:10:35,850 --> 00:10:39,090
I don't know if it's necessarily practical, but it's just a cool practice.
177
00:10:39,390 --> 00:10:43,620
Something just to show you what you can do is you can actually have the border fade out.
178
00:10:44,220 --> 00:10:47,820
So we have it from going left to right and then it just fades out kind of into nothing.
179
00:10:47,820 --> 00:10:50,400
And then when you hover, the background does the same.
180
00:10:50,400 --> 00:10:55,700
So why don't we jump in and do that over in our code editor sandbox that CSC?
181
00:10:55,960 --> 00:10:58,770
We're going to go ahead and add that CSC comment.
182
00:11:00,150 --> 00:11:04,470
Just like so gradient bordered buttons, you can do something simpler if you want.
183
00:11:05,160 --> 00:11:06,000
I just like doing that.
184
00:11:06,330 --> 00:11:06,600
All right.
185
00:11:06,600 --> 00:11:11,250
So we're going to check out in the index of each HTML, what is what are the classes that we're working
186
00:11:11,250 --> 00:11:11,430
with?
187
00:11:11,850 --> 00:11:14,160
We got gradient button, one gradient button to.
188
00:11:15,280 --> 00:11:24,730
Beauty, OK, so gradient, but in that one, we're going to start off and give it a position of relative.
189
00:11:25,000 --> 00:11:25,780
Oh, that's weird.
190
00:11:26,290 --> 00:11:31,750
That's all we want relative and then Z Index one just to keep it all at one level, just in case we
191
00:11:31,750 --> 00:11:36,910
have some weird stuff going on with overlaps and stuff.
192
00:11:38,470 --> 00:11:44,290
Display in line block padding 20 pixels.
193
00:11:44,290 --> 00:11:46,120
A 40 40 pixels.
194
00:11:47,510 --> 00:11:56,540
And then we're going to say font size, let's go for one point for RAM, box sizing is going to be broader
195
00:11:56,540 --> 00:12:02,690
box so that the 20 and 40 pixels, it doesn't add more width and height to the button.
196
00:12:02,690 --> 00:12:09,020
When we add a thick border to it that stays within the constraints of the dimensions that we set.
197
00:12:09,680 --> 00:12:17,150
I'm going to go background color e seven e f one.
198
00:12:18,340 --> 00:12:20,200
And that's just a background color.
199
00:12:21,670 --> 00:12:28,960
And then we're going to do a border of solid 10 pixels and transparent.
200
00:12:30,350 --> 00:12:35,450
So we're going to give it a semi-solid and 10 pixels, but no color because we're going to we're going
201
00:12:35,450 --> 00:12:38,390
to add that here using border image.
202
00:12:40,220 --> 00:12:44,930
We're going to do the linear gradient and then parentheses.
203
00:12:44,930 --> 00:12:46,400
Then we have a couple few values here.
204
00:12:46,400 --> 00:12:53,720
So we're going to say to top right, which means it's coming from the bottom left and moving up to the
205
00:12:53,720 --> 00:12:54,300
top right.
206
00:12:54,320 --> 00:12:55,130
That's what that means.
207
00:12:55,130 --> 00:13:02,060
You could also say to bottom right to top left to, you know, bottom left, or you could just say top
208
00:13:02,360 --> 00:13:07,730
right, bottom or left and have it be linear, you know, have it go from the top to the bottom, left
209
00:13:07,730 --> 00:13:08,240
to the right?
210
00:13:08,510 --> 00:13:12,730
All this does is it goes up on an angle and that's what I want to be able to achieve here.
211
00:13:13,870 --> 00:13:16,360
And then we need to have some colors, the first color.
212
00:13:16,930 --> 00:13:19,210
I'm going to go with orange, red and then the second yellow.
213
00:13:19,690 --> 00:13:22,090
And then if I see that, let's see what that looks like.
214
00:13:22,120 --> 00:13:27,730
OK, so we've got each of the corners have that gradient.
215
00:13:27,730 --> 00:13:28,870
So it's kind of looks weird.
216
00:13:28,870 --> 00:13:31,670
It's not really what we want from, but it has the color.
217
00:13:31,690 --> 00:13:34,660
So from bottom left to top right, it's got that orange and yellow.
218
00:13:34,870 --> 00:13:39,010
So the gradients, right, but it's just popping into the corners.
219
00:13:39,310 --> 00:13:44,620
Now the way we fix that is using a CSE's property called Border Image Slice.
220
00:13:45,340 --> 00:13:51,430
Basically, it specifies how to slice the image so you can use the border image and put an actual image
221
00:13:51,430 --> 00:13:51,910
as the border.
222
00:13:51,910 --> 00:13:52,960
But I'm using a gradient.
223
00:13:53,860 --> 00:14:00,970
So I found that if we put if we go back here to our code editor and if we were to put the border image
224
00:14:00,970 --> 00:14:04,930
slice, now you can put different values in there.
225
00:14:04,930 --> 00:14:09,160
But the value that I'm going to put is literally just the number one.
226
00:14:09,580 --> 00:14:14,790
And what that does is it fills out so that each of those corners connect.
227
00:14:14,800 --> 00:14:16,000
That's what that does.
228
00:14:16,540 --> 00:14:18,980
You can also play around with different values and see what happens.
229
00:14:19,000 --> 00:14:21,910
And there's also different things like Phil and so on and so forth.
230
00:14:21,910 --> 00:14:27,790
You can read about it in the browser support, but border image slice one connects all those corners.
231
00:14:27,790 --> 00:14:29,200
And so there we are gradients.
232
00:14:29,200 --> 00:14:31,510
And essentially, essentially, it's done.
233
00:14:31,990 --> 00:14:35,230
That's gradient button, you know, gradient border button one.
234
00:14:35,530 --> 00:14:38,160
But I just want to make it a little bit more interactive.
235
00:14:38,170 --> 00:14:39,310
It doesn't really look like a button.
236
00:14:39,670 --> 00:14:39,970
Hmm.
237
00:14:40,210 --> 00:14:40,900
Good.
238
00:14:41,750 --> 00:14:42,340
Hmm.
239
00:14:44,140 --> 00:14:44,410
All right.
240
00:14:44,410 --> 00:14:47,860
And then colorless, I think the text color orange, red as well.
241
00:14:49,940 --> 00:14:53,210
And then we're going to say transition.
242
00:14:54,590 --> 00:15:02,210
This is just for when we have a little bit of an effect, a hover effect 0.3 seconds is in out.
243
00:15:02,240 --> 00:15:02,870
I like that one.
244
00:15:02,870 --> 00:15:07,150
You can use EAS, you can use linear, you can use quad easing or whatever.
245
00:15:07,160 --> 00:15:09,110
There's a bunch of different transition properties.
246
00:15:09,440 --> 00:15:11,480
So transition is in out.
247
00:15:11,570 --> 00:15:15,920
Works fine for me, but you won't see it until we use it on the hover.
248
00:15:15,930 --> 00:15:17,150
So we're going to tab in here.
249
00:15:17,150 --> 00:15:21,620
We're going to see gradient button dash one.
250
00:15:23,650 --> 00:15:24,490
And that's going to be.
251
00:15:24,840 --> 00:15:30,490
However, and we're just going to say background.
252
00:15:31,770 --> 00:15:39,270
Image linear gradient from the linear gradient as well, and then to top right, and we're just going
253
00:15:39,270 --> 00:15:44,640
to fill out the same style gradient orange, red, comma yellow.
254
00:15:44,850 --> 00:15:46,170
That's what that will get you.
255
00:15:46,170 --> 00:15:46,650
Save that.
256
00:15:46,650 --> 00:15:47,400
Check it out here.
257
00:15:47,760 --> 00:15:52,210
When I hover, it's going to give us that gradient in the background.
258
00:15:52,230 --> 00:15:57,320
And then let's say color whites say that.
259
00:15:57,340 --> 00:15:58,140
Check it out.
260
00:15:58,770 --> 00:16:00,060
It should look pretty good there.
261
00:16:00,060 --> 00:16:06,240
When you hover the the text color slowly fades into white from the orange red and then the background
262
00:16:06,240 --> 00:16:09,090
pops in there filling in that gradient.
263
00:16:09,090 --> 00:16:10,000
So that looks pretty cool.
264
00:16:10,020 --> 00:16:13,620
The point here was the gradient border around the button itself.
265
00:16:13,770 --> 00:16:13,960
Hmm.
266
00:16:14,820 --> 00:16:19,800
OK, so now let's jump down to a gradient button to let's do that one real quick here.
267
00:16:21,240 --> 00:16:24,180
So we're going to do a gradient button to.
268
00:16:26,610 --> 00:16:34,200
And we're going to do position relative that index, one that should do the trick.
269
00:16:35,630 --> 00:16:38,520
Padding, we'll see we did recover, just copy a lot of this, actually.
270
00:16:38,540 --> 00:16:41,300
Why don't we just Hey, folks, let's save some time.
271
00:16:41,330 --> 00:16:42,440
Copy all this.
272
00:16:42,740 --> 00:16:43,910
Goodness gracious.
273
00:16:44,210 --> 00:16:46,070
All we're going to do is just paste that in there.
274
00:16:47,090 --> 00:16:53,030
We're not doing anything new or crazy, except for maybe let's change the size of the border.
275
00:16:53,030 --> 00:16:57,380
So instead of 10 pixels, just just make it like four pixels and the colors.
276
00:16:57,380 --> 00:17:01,070
Let's do orange, red to transparent.
277
00:17:01,100 --> 00:17:04,100
But right now, because we're doing to top right, it's not what I want.
278
00:17:04,400 --> 00:17:07,840
I want it to go to right.
279
00:17:08,360 --> 00:17:10,280
So orange, red, transparent.
280
00:17:10,280 --> 00:17:14,330
So it's going to fade out and leave the color in the transition there.
281
00:17:14,780 --> 00:17:17,720
And then we're going to copy the hover as well.
282
00:17:19,030 --> 00:17:22,600
Because we need that for interactive kind of accessibility reasons.
283
00:17:23,260 --> 00:17:25,210
It's going to be button to grading button, too.
284
00:17:25,510 --> 00:17:27,990
And this is going to be too right.
285
00:17:28,990 --> 00:17:30,790
This is going to be too transparent.
286
00:17:31,120 --> 00:17:33,610
And that should do the trick.
287
00:17:34,000 --> 00:17:34,930
Well, let's see what happens.
288
00:17:34,960 --> 00:17:35,530
Save it.
289
00:17:35,560 --> 00:17:36,670
Check it out in your browser.
290
00:17:37,330 --> 00:17:39,140
Looks good so far when I hover.
291
00:17:39,160 --> 00:17:42,310
Woops, it's going on their border shows up on the right side.
292
00:17:42,580 --> 00:17:44,590
What we need to do on hover is remove that border.
293
00:17:44,590 --> 00:17:50,160
So let's go back to our code editor and simply say border write style.
294
00:17:50,470 --> 00:17:53,520
None that should do the trick.
295
00:17:53,530 --> 00:17:54,190
Go back here.
296
00:17:54,220 --> 00:17:54,640
Hover.
297
00:17:55,240 --> 00:17:55,750
Perfect.
298
00:17:56,170 --> 00:17:56,460
There you go.
299
00:17:56,550 --> 00:17:56,820
We agree.
300
00:17:56,820 --> 00:17:57,880
A great border button.
301
00:17:57,880 --> 00:17:59,230
One ingredient border button.
302
00:17:59,230 --> 00:18:03,310
Two Very simple, nice little trick using border images and linear gradients.
303
00:18:03,730 --> 00:18:04,510
I like it.
304
00:18:05,260 --> 00:18:06,790
Moving on to the animated buttons.
27972
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.