How to Avoid the White Borders When Exporting a GIF.
To avoid these white lines/borders on your GIF after exporting, do the following:
1
Go to File > Export > Save for Web (Legacy).
2
Select the GIF options you prefer.
3
In the “Matte” option on the right side, select “None”.
4
Click “Save”.