1
+ <?xml version="1.0" encoding="utf-8"?>
1
2
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
2
3
<CodeSnippet Format="1.4.0">
3
4
<Header>
4
5
<SnippetTypes>
5
6
<SnippetType>Expansion</SnippetType>
6
7
</SnippetTypes>
7
- <Title>Effects: fadeTo(speed, opacity, callback) </Title>
8
+ <Title>jqFadeToFull </Title>
8
9
<Author>John Sheehan (@johnsheehan)</Author>
9
- <Shortcut>jqFadeToFull</Shortcut >
10
+ <Description>Adjust the opacity of the matched elements.</Description >
10
11
<HelpUrl>https://github.com/kspearrin/Visual-Studio-jQuery-Code-Snippets</HelpUrl>
12
+ <Shortcut>jqFadeToFull</Shortcut>
11
13
</Header>
12
14
<Snippet>
13
15
<Declarations>
14
- <Literal>
16
+ <Literal Editable="true" >
15
17
<ID>selector</ID>
16
18
<ToolTip>jQuery selector</ToolTip>
17
19
<Default>selector</Default>
20
+ <Function>
21
+ </Function>
18
22
</Literal>
19
- <Literal>
20
- <ID>speed</ID>
21
- <ToolTip>'slow', 'normal', 'fast' or milliseconds</ToolTip>
22
- <Default>speed</Default>
23
+ <Literal Editable="true">
24
+ <ID>duration</ID>
25
+ <ToolTip>A string or number determining how long the animation will run.</ToolTip>
26
+ <Default>duration</Default>
27
+ <Function>
28
+ </Function>
23
29
</Literal>
24
- <Literal>
30
+ <Literal Editable="true" >
25
31
<ID>opacity</ID>
26
- <ToolTip>Opacity to fade to between 0 and 1</ToolTip>
32
+ <ToolTip>A number between 0 and 1 denoting the target opacity. </ToolTip>
27
33
<Default>opacity</Default>
34
+ <Function>
35
+ </Function>
28
36
</Literal>
29
- </Declarations>
30
- <Code Language="JavaScript">
31
- <![CDATA[$$($selector$).fadeTo($speed$, $opacity$, function () {
37
+ </Declarations>
38
+ <Code Language="javascript"><![CDATA[$$($selector$).fadeTo($duration$, $opacity$, function () {
32
39
$end$
33
- });]]>
34
- </Code>
40
+ });]]></Code>
35
41
</Snippet>
36
42
</CodeSnippet>
37
- </CodeSnippets>
38
-
43
+ </CodeSnippets>
0 commit comments