You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-16Lines changed: 7 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
# Generate FFMpeg easing and tweening strings in Laravel.
2
-
3
2
[](https://packagist.org/packages/projektgopher/laravel-ffmpeg-tween)
For now this package can only be used within a Laravel app, but there are plans to extract the core functionality out into a separate package that can be used without being bound to the framework.
41
-
42
34
## Usage
35
+
### Using outside of a Laravel application
36
+
For now this package can only be used within a Laravel app, but there are plans to extract the core functionality into a separate package that can be used without being bound to the framework.
43
37
44
-
Simple tween with delay and duration
38
+
### Simple tween with delay and duration
45
39
```php
46
40
use ProjektGopher\FFMpegTween\Tween;
47
41
use ProjektGopher\FFMpegTween\Timing;
@@ -55,7 +49,7 @@ $x = (new Tween())
55
49
->ease(Ease::OutSine);
56
50
```
57
51
58
-
Animation sequences using keyframes
52
+
### Animation sequences using keyframes
59
53
```php
60
54
use ProjektGopher\FFMpegTween\Keyframe;
61
55
use ProjektGopher\FFMpegTween\Timeline;
@@ -79,15 +73,16 @@ $x->keyframe((new Keyframe)
79
73
->duration(Timing::seconds(1))
80
74
);
81
75
```
76
+
82
77
> **Note**`new Timeline()` returns a _fluent_ api, meaning methods can be chained as well.
83
78
84
79
## Testing
85
-
86
80
```bash
87
81
composer test
88
82
```
89
83
90
84
### Visual Snapshot Testing
85
+
#### Easing
91
86
To generate plots of all `Ease` methods, from the project root, run
92
87
```bash
93
88
./scripts/generateEasings
@@ -96,6 +91,7 @@ The 256x256 PNGs will be generated in the `tests/Snapshots/Easings` directory.
96
91
These snapshots will be ignored by git, but allow visual inspection of the plots to
97
92
compare against known good sources, like [Easings.net](https://easings.net).
98
93
94
+
#### Timelines
99
95
To generate a video using a `Timeline` with `Keyframes`, from the project root, run
100
96
```bash
101
97
./scripts/generateTimeline
@@ -110,22 +106,17 @@ chmod -R 777 ./scripts
110
106
```
111
107
112
108
## Changelog
113
-
114
109
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
115
110
116
111
## Contributing
117
-
118
112
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
119
113
120
114
## Security Vulnerabilities
121
-
122
115
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
123
116
124
117
## Credits
125
-
126
118
-[Len Woodward](https://github.com/ProjektGopher)
127
119
-[All Contributors](../../contributors)
128
120
129
121
## License
130
-
131
122
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
0 commit comments