1
00:00:02,180 --> 00:00:03,390
Now, first of all,

2
00:00:03,390 --> 00:00:04,800
let's clarify what

3
00:00:04,800 --> 00:00:08,150
exactly third party packages are.

4
00:00:08,150 --> 00:00:10,370
I did briefly mention

5
00:00:10,370 --> 00:00:11,870
what I mean by that

6
00:00:11,870 --> 00:00:13,410
and why they might be helpful.

7
00:00:13,410 --> 00:00:15,440
But let's take a closer look.

8
00:00:15,440 --> 00:00:16,290
And I want to take

9
00:00:16,290 --> 00:00:18,570
a closer look by first of all,

10
00:00:18,570 --> 00:00:21,287
emphasizing that you can write all

11
00:00:21,287 --> 00:00:23,090
the CSS and JavaScript code

12
00:00:23,090 --> 00:00:25,240
that your project might need

13
00:00:25,240 --> 00:00:26,360
on your own.

14
00:00:26,360 --> 00:00:30,120
You don't need third party packages at all.

15
00:00:30,120 --> 00:00:33,100
You can write everything on your own.

16
00:00:33,100 --> 00:00:34,760
But often as I mentioned,

17
00:00:34,760 --> 00:00:36,165
you will have certain features

18
00:00:36,165 --> 00:00:39,479
or styles or tasks that you

19
00:00:39,479 --> 00:00:42,000
basically write over and over again,

20
00:00:42,000 --> 00:00:44,240
across multiple projects.

21
00:00:44,240 --> 00:00:45,277
And it's not just you,

22
00:00:45,277 --> 00:00:46,500
as I mentioned,

23
00:00:46,500 --> 00:00:48,960
that's the case for all developers.

24
00:00:48,960 --> 00:00:51,020
There are certain features,

25
00:00:51,020 --> 00:00:52,280
a certain elements,

26
00:00:52,280 --> 00:00:55,610
which we find on almost any website out there,

27
00:00:55,610 --> 00:00:58,340
maybe just with tiny adjustments.

28
00:00:58,340 --> 00:00:59,623
And if every developer has

29
00:00:59,623 --> 00:01:01,890
to write that feature from the

30
00:01:01,890 --> 00:01:03,920
ground up, over and over again,

31
00:01:03,920 --> 00:01:05,950
that's a lot of wasted time

32
00:01:05,950 --> 00:01:08,030
and also error prone.

33
00:01:08,030 --> 00:01:10,870
That could be certain default styling

34
00:01:10,870 --> 00:01:13,050
or arrangements of elements

35
00:01:13,050 --> 00:01:13,883
on your page that

36
00:01:13,883 --> 00:01:16,430
is repeated over and over again.

37
00:01:16,430 --> 00:01:17,640
That could be a feature

38
00:01:17,640 --> 00:01:19,310
like an Image Carousel,

39
00:01:19,310 --> 00:01:22,670
where you can click through multiple images

40
00:01:22,670 --> 00:01:25,740
and have a slideshow of images.

41
00:01:25,740 --> 00:01:27,530
And that could also be something

42
00:01:27,530 --> 00:01:29,530
like a parallax effect,

43
00:01:29,530 --> 00:01:31,260
which is a certain kind

44
00:01:31,260 --> 00:01:32,550
of visual effect,

45
00:01:32,550 --> 00:01:34,300
which you can get when you

46
00:01:34,300 --> 00:01:37,020
scroll on that page.

47
00:01:37,020 --> 00:01:38,170
And we are going to have

48
00:01:38,170 --> 00:01:40,100
a look at these examples and other

49
00:01:40,100 --> 00:01:43,233
examples from this course section.

50
00:01:44,230 --> 00:01:46,070
So, we have things like

51
00:01:46,070 --> 00:01:49,290
that which might be repeating across pages.

52
00:01:49,290 --> 00:01:50,630
And therefore,

53
00:01:50,630 --> 00:01:52,090
we often don't want

54
00:01:52,090 --> 00:01:54,310
to write that code on our own,

55
00:01:54,310 --> 00:01:55,490
but instead we might want

56
00:01:55,490 --> 00:01:57,615
to utilize third party packages

57
00:01:57,615 --> 00:01:59,630
written by others

58
00:01:59,630 --> 00:02:01,740
or maybe even written by us,

59
00:02:01,740 --> 00:02:03,820
but then stored in a package

60
00:02:03,820 --> 00:02:05,930
and maybe distributed to the

61
00:02:05,930 --> 00:02:08,419
web, so that others could use it.

62
00:02:08,419 --> 00:02:11,578
And we then can use such packages no matter

63
00:02:11,578 --> 00:02:14,127
if we wrote them, or others wrote them

64
00:02:14,127 --> 00:02:16,970
to include them into our project,

65
00:02:16,970 --> 00:02:18,280
into our website,

66
00:02:18,280 --> 00:02:19,500
and then build up

67
00:02:19,500 --> 00:02:20,580
on those packages

68
00:02:20,580 --> 00:02:22,542
and use those pre-built features

69
00:02:22,542 --> 00:02:24,716
without writing all the code

70
00:02:24,716 --> 00:02:26,913
for that on our own.

71
00:02:27,770 --> 00:02:30,740
Now we have popular packages,

72
00:02:30,740 --> 00:02:32,014
third-party packages

73
00:02:32,014 --> 00:02:35,680
for both CSS and JavaScript.

74
00:02:35,680 --> 00:02:37,250
And let's maybe start with

75
00:02:37,250 --> 00:02:38,661
some CSS examples.

76
00:02:38,661 --> 00:02:40,037
Though, I will say that these

77
00:02:40,037 --> 00:02:42,710
are really just examples.

78
00:02:42,710 --> 00:02:44,350
There is an endless amount

79
00:02:44,350 --> 00:02:46,341
of packages out there solving

80
00:02:46,341 --> 00:02:48,200
different problems.

81
00:02:48,200 --> 00:02:49,690
And as always in life,

82
00:02:49,690 --> 00:02:51,418
Google will be your friend.

83
00:02:51,418 --> 00:02:52,670
Once you've got a bit

84
00:02:52,670 --> 00:02:53,830
more experience

85
00:02:53,830 --> 00:02:55,055
to find the specific

86
00:02:55,055 --> 00:02:57,610
packages that you might need

87
00:02:57,610 --> 00:02:59,790
for your projects.

88
00:02:59,790 --> 00:03:01,990
Now popular CSS packages,

89
00:03:01,990 --> 00:03:03,260
which you see being used

90
00:03:03,260 --> 00:03:04,559
in a lot of projects would

91
00:03:04,559 --> 00:03:06,735
for example, be Bootstrap,

92
00:03:06,735 --> 00:03:08,539
Material UI,

93
00:03:08,539 --> 00:03:11,700
or Tailwind CSS.

94
00:03:11,700 --> 00:03:14,245
And these are all so-called CSS

95
00:03:14,245 --> 00:03:17,100
frameworks and framework

96
00:03:17,100 --> 00:03:18,390
is just a fancy term,

97
00:03:18,390 --> 00:03:20,046
which we can basically use

98
00:03:20,046 --> 00:03:23,840
as an equivalent to package for now.

99
00:03:23,840 --> 00:03:25,560
That ship with a lot

100
00:03:25,560 --> 00:03:28,320
of built in features in this case,

101
00:03:28,320 --> 00:03:30,440
since they are CSS packages

102
00:03:30,440 --> 00:03:32,848
with a lot of built in styles,

103
00:03:32,848 --> 00:03:35,670
a lot of built in CSS classes

104
00:03:35,670 --> 00:03:37,180
to be precise,

105
00:03:37,180 --> 00:03:38,570
which we can sprinkle

106
00:03:38,570 --> 00:03:40,920
on our HTML elements

107
00:03:40,920 --> 00:03:43,632
to get certain looks and stylings

108
00:03:43,632 --> 00:03:47,160
and layout structures without having

109
00:03:47,160 --> 00:03:49,920
to write our own CSS code.

110
00:03:49,920 --> 00:03:51,230
And that can of course be

111
00:03:51,230 --> 00:03:53,285
a strong reason for using such

112
00:03:53,285 --> 00:03:55,579
a third-party CSS package.

113
00:03:55,579 --> 00:03:58,243
Since we can save all that time,

114
00:03:58,243 --> 00:04:00,930
which we would otherwise spend

115
00:04:00,930 --> 00:04:03,623
on writing our own CSS code.

116
00:04:04,610 --> 00:04:05,680
Now, again, I'll come back

117
00:04:05,680 --> 00:04:07,470
to these packages in a second,

118
00:04:07,470 --> 00:04:08,303
and we're going

119
00:04:08,303 --> 00:04:10,290
to see some CSS package code

120
00:04:10,290 --> 00:04:11,610
in action soon.

121
00:04:11,610 --> 00:04:12,530
But first of all,

122
00:04:12,530 --> 00:04:15,540
let's also have a look at JavaScript.

123
00:04:15,540 --> 00:04:17,019
Now for JavaScript,

124
00:04:17,019 --> 00:04:17,853
though,

125
00:04:17,853 --> 00:04:19,461
it is worth highlighting that,

126
00:04:19,461 --> 00:04:22,410
unlike with CSS,

127
00:04:22,410 --> 00:04:23,835
we don't always include

128
00:04:23,835 --> 00:04:26,693
big JavaScript packages,

129
00:04:26,693 --> 00:04:28,133
which then gave us tons

130
00:04:28,133 --> 00:04:32,120
of functionalities all in one package.

131
00:04:32,120 --> 00:04:35,210
Even though such packages also exist.

132
00:04:35,210 --> 00:04:36,980
But instead we also often

133
00:04:36,980 --> 00:04:39,440
just use smaller packages,

134
00:04:39,440 --> 00:04:42,491
which each only solve one specific problem.

135
00:04:42,491 --> 00:04:46,000
Since unlike with CSS where you

136
00:04:46,000 --> 00:04:46,852
typically want to have

137
00:04:46,852 --> 00:04:49,860
the same style for everything on your page

138
00:04:49,860 --> 00:04:50,740
and therefore for you need

139
00:04:50,740 --> 00:04:52,251
a lot of built in styles.

140
00:04:52,251 --> 00:04:54,704
With JavaScript you often just want

141
00:04:54,704 --> 00:04:59,160
to solve small tiny specific problems.

142
00:04:59,160 --> 00:05:00,010
And for example,

143
00:05:00,010 --> 00:05:01,110
you might want to add

144
00:05:01,110 --> 00:05:02,610
an Image Carousel,

145
00:05:02,610 --> 00:05:04,710
where you can move

146
00:05:04,710 --> 00:05:07,090
through a gallery of images

147
00:05:07,090 --> 00:05:08,850
and well, since something

148
00:05:08,850 --> 00:05:09,683
is changing on

149
00:05:09,683 --> 00:05:11,040
the loaded page here,

150
00:05:11,040 --> 00:05:13,180
we know that JavaScript

151
00:05:13,180 --> 00:05:14,013
has to be involved

152
00:05:14,013 --> 00:05:14,846
and that could be

153
00:05:14,846 --> 00:05:16,330
some JavaScript code

154
00:05:16,330 --> 00:05:17,520
which we don't want to write

155
00:05:17,520 --> 00:05:18,353
on our own,

156
00:05:18,353 --> 00:05:20,820
since it can become more complex,

157
00:05:20,820 --> 00:05:23,300
if your carousel is more complex

158
00:05:23,300 --> 00:05:24,580
and hence we might want

159
00:05:24,580 --> 00:05:26,920
to bring a third party package for that.

160
00:05:26,920 --> 00:05:27,879
That gives us such an

161
00:05:27,879 --> 00:05:30,930
image gallery feature built in.

162
00:05:30,930 --> 00:05:31,830
Or we might want

163
00:05:31,830 --> 00:05:33,560
to use a JavaScript package

164
00:05:33,560 --> 00:05:35,840
that gives us a Scrollspy.

165
00:05:35,840 --> 00:05:37,440
Which basically is a feature

166
00:05:37,440 --> 00:05:39,830
where we scroll through some content

167
00:05:39,830 --> 00:05:40,670
and we might have

168
00:05:40,670 --> 00:05:42,090
some outline maybe

169
00:05:42,090 --> 00:05:44,260
on the right or left of that content

170
00:05:44,260 --> 00:05:46,362
and then different sections,

171
00:05:46,362 --> 00:05:48,850
different links in that outline

172
00:05:48,850 --> 00:05:50,500
are highlighted as we

173
00:05:50,500 --> 00:05:51,772
we reach those sections

174
00:05:51,772 --> 00:05:55,170
in the scrollable content.

175
00:05:55,170 --> 00:05:58,100
Or maybe we want that parallax effect,

176
00:05:58,100 --> 00:06:00,780
which I mentioned and showed before,

177
00:06:00,780 --> 00:06:03,180
where we have that scrolling effect

178
00:06:03,180 --> 00:06:05,505
that animated scrolling effect,

179
00:06:05,505 --> 00:06:06,463
which turns out

180
00:06:06,463 --> 00:06:09,603
is also driven by JavaScript.

181
00:06:10,440 --> 00:06:11,640
And you could implement

182
00:06:11,640 --> 00:06:12,640
all these features

183
00:06:12,640 --> 00:06:14,560
with your own JavaScript code.

184
00:06:14,560 --> 00:06:15,940
But since the code

185
00:06:15,940 --> 00:06:18,069
for that can become complex,

186
00:06:18,069 --> 00:06:20,021
and since these are features,

187
00:06:20,021 --> 00:06:22,230
which you will often see

188
00:06:22,230 --> 00:06:23,870
on different websites,

189
00:06:23,870 --> 00:06:24,740
you might just want

190
00:06:24,740 --> 00:06:26,430
to use an existing solution

191
00:06:26,430 --> 00:06:28,430
and not waste time writing

192
00:06:28,430 --> 00:06:29,863
your own code for that.

